Search

Sunday 24 February 2019

Install Docker Community Edition on CentOS7

# Install Docker Community Edition on CentOS7
# Install docker dependencies and daemon
sudo yum install -y yum-utils \
device-mapper-persistent-data \
lvm2

sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-ce
# Set Docker to start on boot
sudo systemctl enable docker
# Add a non-root user to the Docker group
sudo usermod -aG docker guser # guser is my user in this case
# UPGRADE DOCKER CE
# To upgrade Docker CE, download the newer package file and repeat the installation procedure, using yum -y upgrade instead of yum -y install, and pointing to the new file.
# Test Docker is working
sudo docker run hello-world
# Install Docker compose
sudo yum install epel-release
sudo yum install -y python-pip
sudo pip install docker-compose
sudo yum upgrade python*
docker-compose -v

# Disable the firewall
systemctl disable firewalld

No comments:

Post a Comment