Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import os
  2.  
  3. os.system("sudo apt update")
  4.  
  5. os.system("sudo apt install apt-transport-https ca-certificates curl software-properties-common")
  6.  
  7. os.system("curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -")
  8.  
  9. os.system('sudo add-apt-repository "deb [arch=amd64] https://download.docker.con/linux/ubuntu bionic stable"')
  10.  
  11. os.system("sudo apt update")
  12.  
  13. os.system("apt-cache policy docker-ce")
  14.  
  15. os.system("sudo apt install docker-ce")
  16.  
  17. os.system("sudo systemctl status docker")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement