Advertisement
cmiyamoto

Docker Install on fresh Ubuntu 18.04 Bionic Install

Feb 24th, 2020
856
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. How To Install Docker On Ubuntu 18.04 Bionic Beaver
  2. Credit to following website: https://phoenixnap.com/kb/how-to-install-docker-on-ubuntu-18-04
  3.  
  4. Once a fresh install of Ubuntu 18.04 Server is complete, perform the following steps to complete installation of Docker from official repository.
  5.  
  6. 1. sudo apt-get update
  7. 2. sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
  8. 3. curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add
  9. 4. sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
  10. 5. sudo apt-get update
  11. 6. sudo apt-get install docker-ce
  12.  
  13.  
  14. Docker admin as a non-root user:
  15. Credit to following website: https://www.thegeekdiary.com/run-docker-as-a-non-root-user/
  16.  
  17. 7. sudo usermod -aG docker [non-root user account]
  18. 9. logout of Ubuntu
  19. 10. login to Ubuntu
  20. 11. docker run hello-world (to test account with docker privilages)
  21.  
  22. Configure Docker to start on boot
  23.  
  24. 12. sudo systemctl enable docker
  25.  
  26. ***NOTE***
  27. Needed to throw up this guide because I kept needing to Google commands (>.<) I'm still very much a newb at this stuff.
  28. Thank you OP's from phoenixnap.com and thegeekdiary.com.
  29. I'm sure there are many other's, but these are the sites I used the most.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement