Skip to content

Instantly share code, notes, and snippets.

@nissshh
Last active November 9, 2016 14:18
Show Gist options
  • Save nissshh/8aaff283c4ea64d805ce36a3c2aba87a to your computer and use it in GitHub Desktop.
Save nissshh/8aaff283c4ea64d805ce36a3c2aba87a to your computer and use it in GitHub Desktop.
follow below step after ou have an host machien at your end be it Cloud or on premise or a dev box, you cant use ubuntu trysty on vagrant+virtualbox
Step 1.
ubuntu@ip-xxx-xx-x-xxx:~$ sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.jNZLKNnKte --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
gpg: requesting key 2C52609D from hkp server p80.pool.sks-keyservers.net
gpg: key 2C52609D: public key "Docker Release Tool (releasedocker) <docker@docker.com>" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
Step 2:
ubuntu@ip-xxx-xx-x-xxx:~$ sudo vi /etc/apt/sources.list.d/docker.list
Step 3:
ubuntu@ip-xxx-xx-x-xxx:~$ sudo apt-get update
Step 4:
ubuntu@ip-172-31-0-151:~$ sudo apt-cache policy docker-engine
Step 5:
For Ubuntu Trusty (and some other versions), it’s recommended to install the linux-image-extra kernel package, which allows you use the aufs storage driver, so we’ll do that now.
ubuntu@ip-xxx-xx-x-xxx:~$ sudo apt-get update
ubuntu@ip-172-31-0-151:~$ sudo apt-get install linux-image-extra-$(uname -r)
Step 6. Install Docker Engine
ubuntu@ip-xxx-xx-x-xxx:~$ sudo apt-get update
ubuntu@ip-xxx-xx-x-xxx:~$ sudo apt-get install docker-engine
Step 7: Start docker daemon
ubuntu@ip-xxx-xx-x-xxx:~$ sudo service docker start
Step 8 L: Test installation
ubuntu@ip-xxx-xx-x-xxx:~$ sudo docker run hello-world
REf:
https://docs.docker.com/engine/installation/linux/ubuntulinux/
https://docs.docker.com/engine/installation/cloud/cloud-ex-aws/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment