Docker is one of the most popular containers technology.
Docker is a set of the platform as a service (PaaS) products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries, and configuration files; they can communicate with each other through well-defined channels. All containers are run by a single operating system kernel and therefore use fewer resources than virtual machines
https://en.wikipedia.org/wiki/Docker_(software)
Install Docker
Download docker desktop
https://docs.docker.com/docker-for-mac/install/
Download docker desktop
https://docs.docker.com/docker-for-windows/install/
Install with yum package
yum update -y
yum install docker
docker --version
Docker version 19.03.6-ce, build 369ce74
sudo service docker start
Starting cgconfig service: [ OK ]
Starting docker: . [ OK ]
Install with apt package
sudo apt-get update
sudo apt install docker.io
sudo systemctl enable --now docker
docker --version
Docker version 19.03.8, build
Install Docker-Compose
Download docker compose
https://docs.docker.com/compose/install/
Download docker compose
https://docs.docker.com/compose/install/
Install docker-compose from github
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 651 100 651 0 0 2100 0 --:--:-- --:--:-- --:--:-- 2100
100 11.6M 100 11.6M 0 0 2926k 0 0:00:04 0:00:04 --:--:-- 3348k
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version
docker-compose version 1.27.4, build 40524192
Install docker-compose from github
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version
docker-compose version 1.27.4, build 40524192
sudo chmod 666 /var/run/docker.sock
docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username:
Password: