Skip to content

dev12 docker config

Tom Purucker edited this page Jun 7, 2018 · 1 revision

installing docker

subscription-manager repos --list
subscription-manager repos --enable rhel-7-server-extras-rpms
yum install git
yum install httpd
systemctl start httpd
systemctl enable httpd
yum install docker
systemctl start docker
systemctl enable docker
systemctl stop docker
mv /var/lib/docker /data/docker
ln -s /data/docker /var/lib/docker
systemctl start docker

upgrading docker

# stop the docker service
systemctl stop docker
# update
sudo yum update docker-engine
# restart
sudo systemctl restart docker.service
# check the version
sudo docker version
# status
sudo systemctl status docker.service