Advertisement
andrejsstepanovs

install docker

Nov 4th, 2020 (edited)
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.07 KB | None | 0 0
  1. #!/bin/bash
  2. # install docker
  3. # debian / ubuntu
  4.  
  5. curl https://releases.rancher.com/install-docker/19.03.sh | sh
  6. curl https://releases.rancher.com/install-docker/20.10.sh | sh
  7.  
  8. ##################################################################
  9. ########### OR FULL INSTALL DESCRIBED IN DOCKER WEBSITE ##########
  10. ##################################################################
  11.  
  12. sudo apt-get install \
  13.     apt-transport-https \
  14.     ca-certificates \
  15.     curl \
  16.     gnupg-agent \
  17.     software-properties-common
  18.  
  19. curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
  20. sudo apt-key fingerprint 0EBFCD88
  21.  
  22. sudo add-apt-repository \
  23.    "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
  24.   $(lsb_release -cs) \
  25.   stable"
  26.  
  27. sudo apt-get update
  28. sudo apt-get install docker-ce docker-ce-cli containerd.io
  29.  
  30.  
  31. ##################################################################
  32. ######################## ENABLE ROOTLESS #########################
  33. ##################################################################
  34.  
  35. sudo usermod -aG docker ubuntu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement