Professional Documents
Culture Documents
Docker: 9136 companies reportedly use Docker in their tech stacks, including
Pinterest, Shopify, and Spotify.
Docker is a Containerization tool, there are others too like Podman and CRI-O.
Here is the solution Container (Docker) which installs the OS in less than 1
sec. It also gives the hardware facilities like RAM & CPU and configures the
OS as required. It makes deployment rapid.
To use the docker we need the OS, we are using AWS cloud for the OS
Name the OS and select Amazon Machine Image like Amazon Linux
Choose Instance type (t2.mirco is free) and the key pair can be set as the
default value so that we can log in without a key pair
[Docker Masterclass]
yum install docker -y Command to install the docker with the option yes.
ctl+p+q shortcut key to exit from the container without shutting down.
docker run -it --name myos1 centos:latest command to launch the OS with
custom name.
docker run -dit --name os1 -p 1234:80 httpd – giving the port number to the
container
[Docker Masterclass]
Installing Docker-Compose
Run the given command below to install the docker-compose command
sudo curl -L
"https://github.com/docker/compose/releases/download/v2.12.2/docker-
compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo mv /usr/local/bin/docker-compose /usr/bin/docker-compose
sudo chmod +x /usr/bin/docker-compose