Advertisement
Sergio_Istea

docker-deploy.sh

Nov 2nd, 2021
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.42 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [ $UID -ne 0 ]; then
  4.     echo "ejecute 'sudo $0'"
  5.  
  6. fi
  7.  
  8. apt update && apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common
  9.  
  10. curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
  11.  
  12. add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
  13.  
  14. apt update
  15.  
  16. apt install docker-ce docker-ce-cli containerd.io
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement