Docker container Vs Virtual Machine Docker Architecture: Workflow: Basic Concepts - Registry - Repository - Tag - Image - Containers. Registry/ Repository : https://hub.docker.com is a public registry and it contains many repositories. For Eg: https://hub.docker.com/r/ in28min/todo-rest-api-h2 (Highlighted one is the repository). Tags : In the repository, there will a different versions of an image. For Eg: docker run in28min/todo-rest-api-h2: 1.0.0.RELEASE Image : A static template - A set of bytes Container : Running version of your image ========================================================================== Install docker : https://docs.docker.com/desktop/ ========================================================================== Docker commands Run a docker image : docker run -p 5000:5000 in28min/todo-rest-api-h2:1.0.0.RELEASE -p 5000:5000 => {host po...
curl is a command-line utility for transferring data from or to a server designed to work without user interaction. With curl , you can download or upload data using one of the supported protocols including HTTP, HTTPS, SCP , SFTP , and FTP . curl provides a number of options allowing you to resume transfers, limit the bandwidth, proxy support, user authentication, and much more. To Print the header: Use the -I option to fetch only the HTTP headers of the specified resource. curl -Is http://linux.com/ curl -I --http2 https://www.ubuntu.com/ With Proxy: curl supports different types of proxies, including HTTP, HTTPS and SOCKS. To transfer data through a proxy server, use the -x ( --proxy ) option, followed by the proxy URL. curl -x 192.168.44.1:8888 http://linux.com/ With Proxy & Username/Password: If the proxy server requires au...
Comments
Post a Comment