Last active
February 19, 2018 21:20
-
-
Save smijar/f5105e30b3a345707a56b33a07254605 to your computer and use it in GitHub Desktop.
Installing docker-ce on Centos7 minimal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum update | |
https://docs.docker.com/engine/installation/linux/centos/ | |
yum install -y yum-utils | |
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | |
yum makecache fast | |
yum install docker-ce | |
docker | |
To add docker-compose | |
--------------------- | |
pip install docker-compose | |
To remove docker | |
---------------- | |
yum remove docker-ce | |
To start docker service daemon | |
------------------------------ | |
systemctl start docker | |
status | |
------ | |
systemctl status docker | |
or | |
systemctl is-active docker | |
start Docker daemon on boot | |
--------------------------- | |
systemctl enable docker | |
can disable it using: | |
systemctl disable docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment