Advertisement
opexxx

setupDocker.sh

May 22nd, 2015
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.61 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Add the Docker repository key to your local keychain
  4. # using apt-key finger you can check the fingerprint matches 36A1 D786 9245 C895 0F96 6E92 D857 6A8B A88D 21E9
  5. sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -"
  6.  
  7. # Add the Docker repository to your apt sources list.
  8. sudo sh -c "echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
  9.  
  10. # update
  11. apt-get update
  12.  
  13. # install
  14. apt-get install -y lxc-docker
  15.  
  16. # download the base 'ubuntu' container
  17. # and run bash inside it while setting up an interactive shell
  18. sudo docker run -i -t ubuntu /bin/bash
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement