arthurd2

dockerinstall

May 5th, 2020
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #!/bin/bash
  2. apt-get update
  3. apt-get install -y \
  4. apt-transport-https \
  5. ca-certificates \
  6. curl \
  7. gnupg-agent \
  8. software-properties-common
  9. apt-get remove docker docker-engine docker.io containerd runc
  10. curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
  11. apt-key fingerprint 0EBFCD88
  12. add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
  13. sudo apt update
  14. sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose
  15. service docker restart
Add Comment
Please, Sign In to add comment