| 79 | == Install |
| 80 | |
| 81 | Make sure you have installed the prerequisites for your Ubuntu version. |
| 82 | |
| 83 | Then, install Docker using the following: |
| 84 | |
| 85 | 1. Log into your Ubuntu installation as a user with sudo privileges. |
| 86 | |
| 87 | 2. Update your APT package index. |
| 88 | |
| 89 | $ sudo apt-get update |
| 90 | |
| 91 | 3. Install Docker. |
| 92 | |
| 93 | $ sudo apt-get install docker-engine |
| 94 | |
| 95 | Start the docker daemon. |
| 96 | |
| 97 | $ sudo service docker start |
| 98 | |
| 99 | Verify docker is installed correctly. |
| 100 | |
| 101 | $ sudo docker run hello-world |
| 102 | |
| 103 | This command downloads a test image and runs it in a container. When the container runs, it prints an informational message. Then, it exits. |
92 | | |
93 | | {{{ |
94 | | sudo apt-get update |
95 | | |
96 | | sudo apt-get install apt-transport-https ca-certificates |
97 | | |
98 | | sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D |
99 | | |
100 | | sudo vi /etc/apt/sources.list.d/docker.list |
101 | | |
102 | | cd /etc/apt/ |
103 | | |
104 | | ls |
105 | | cd sources.list.d/ |
106 | | ls |
107 | | sudo vi /etc/apt/sources.list.d/docker.list |
108 | | cd /home |
109 | | ls |
110 | | cd si84/ |
111 | | sudo apt-get update |
112 | | sudo apt-get purge lxc-docker |
113 | | apt-cache policy docker-engine |
114 | | sudo apt-get install linux-image-extra-$(uname -r) |
115 | | sudo apt-get update |
116 | | sudo apt-get install docker-engine |
117 | | sudo service docker start |
118 | | }}} |