Fork me on GitHub

MoYummy's Blog

Setup docker on Centos

  • 04 Feb 2017 100 views Comment(100) Like Report
  • sudo yum install -y yum-utils
    sudo yum-config-manager --add-repo https://docs.docker.com/engine/installation/linux/repo_files/centos/docker.repo
    sudo yum makecache fast
    sudo yum -y install docker-engine
    sudo service docker start
    sudo chkconfig docker on
    cut -d: -f1 /etc/group|grep docker
    sudo usermod -a -G docker [user]
    sudo reboot -f
    

    Then try pulling an image like

    docker pull jenkins
    
  • 2017 Mo Yummy
    Powered by Jekyll and Bootstrap
    Creative Commons License
    This work is licensed under a Creative Commons Attribution 4.0 International License.