SHARE
TWEET

Docker-CE Install

thesuhu Jan 28th, 2020 (edited) 145 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # INSTALL DOCKER CE
  2.  
  3. # Uninstall old versions
  4. sudo yum remove docker \
  5.                   docker-client \
  6.                   docker-client-latest \
  7.                   docker-common \
  8.                   docker-latest \
  9.                   docker-latest-logrotate \
  10.                   docker-logrotate \
  11.                   docker-engine
  12.  
  13. # install required packages. yum-utils
  14. sudo yum install -y yum-utils \
  15.   device-mapper-persistent-data \
  16.   lvm2
  17.  
  18. # set up the stable repository
  19. sudo yum-config-manager \
  20.     --add-repo \
  21.     https://download.docker.com/linux/centos/docker-ce.repo
  22.  
  23. # Install the latest version of Docker Engine - Community and containerd
  24. sudo yum install docker-ce docker-ce-cli containerd.io
  25.  
  26. # Start Docker
  27. sudo systemctl start docker
  28. sudo systemctl enable docker
  29.  
  30. # Verify that Docker Engine - Community is installed correctly by running the hello-world image
  31. sudo docker run hello-world
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top