Skip to content

Instantly share code, notes, and snippets.

@gsaslis
Last active December 3, 2018 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gsaslis/26ecd11a21e7cf0ef76d7a9faf7a9ebe to your computer and use it in GitHub Desktop.
Save gsaslis/26ecd11a21e7cf0ef76d7a9faf7a9ebe to your computer and use it in GitHub Desktop.
Docker CE for Centos

Install Docker-CE (for Centos)

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
sudo systemctl start docker
sudo systemctl enable docker

usermod -aG docker jenkins
# note that the jenkins user will have to reconnect / start a new shell session for this change to be picked up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment