|
...
|
...
|
@@ -71,34 +71,42 @@
|
|
71
|
71
|
<h2>
|
|
72
|
72
|
<a name="installing-on-ubuntu-1204-and-1210" class="anchor" href="#installing-on-ubuntu-1204-and-1210"><span class="mini-icon mini-icon-link"></span>
|
|
73
|
73
|
</a>Installing on Ubuntu</h2>
|
|
|
74
|
+ <strong>Requirements</strong>
|
|
|
75
|
+ <ul>
|
|
|
76
|
+ <li>Ubuntu 12.04 (LTS) or Ubuntu 12.10</li>
|
|
|
77
|
+ <li><strong>64-bit Operating system</strong></li>
|
|
|
78
|
+ </ul>
|
|
74
|
79
|
<ol>
|
|
75
|
80
|
<li>
|
|
76
|
|
- <p>Install dependencies:</p>
|
|
|
81
|
+ <p>Add the Ubuntu PPA (Personal Package Archive) sources to your apt sources list. Copy and
|
|
|
82
|
+ paste the following lines at once.</p>
|
|
77
|
83
|
|
|
78
|
84
|
<div class="highlight">
|
|
79
|
|
- <pre>sudo apt-get install lxc wget bsdtar curl</pre>
|
|
80
|
|
- <pre>sudo apt-get install linux-image-extra-<span class="sb">`</span>uname -r<span class="sb">`</span></pre></div>
|
|
|
85
|
+ <pre>sudo sh -c "echo 'deb http://ppa.launchpad.net/dotcloud/lxc-docker/ubuntu precise main' >> /etc/apt/sources.list"</pre>
|
|
81
|
86
|
|
|
82
|
|
- <p>The <code>linux-image-extra</code> package is needed on standard Ubuntu EC2 AMIs in order to install the aufs kernel module.</p>
|
|
83
|
87
|
</li>
|
|
84
|
88
|
<li>
|
|
85
|
|
- <p>Install the latest docker binary:</p>
|
|
|
89
|
+ <p>Update your sources. You will see a warning that GPG signatures cannot be verified.</p>
|
|
86
|
90
|
|
|
87
|
91
|
<div class="highlight">
|
|
88
|
|
- <pre>wget http://get.docker.io/builds/<span class="k">$(</span>uname -s<span class="k">)</span>/<span class="k">$(</span>uname -m<span class="k">)</span>/docker-master.tgz</pre>
|
|
89
|
|
- <pre>tar -xf docker-master.tgz</pre>
|
|
|
92
|
+ <pre>sudo apt-get update</pre>
|
|
90
|
93
|
</div>
|
|
91
|
94
|
</li>
|
|
92
|
95
|
<li>
|
|
93
|
|
- <p>Run your first container!</p>
|
|
|
96
|
+ <p>Now install it, you will see another warning that the package cannot be authenticated. Confirm install.</p>
|
|
94
|
97
|
|
|
95
|
|
- <div class="highlight"><pre><span class="nb">cd </span>docker-master</pre>
|
|
96
|
|
- <pre>sudo ./docker run -i -t base /bin/bash</pre>
|
|
|
98
|
+ <div class="highlight">
|
|
|
99
|
+ <pre>sudo apt-get install lxc-docker</pre>
|
|
97
|
100
|
</div>
|
|
98
|
|
- <p>Done!</p>
|
|
99
|
|
- <p>Consider adding docker to your <code>PATH</code> for simplicity.</p>
|
|
100
|
101
|
</li>
|
|
101
|
102
|
|
|
|
103
|
+ <li>
|
|
|
104
|
+ <p><strong>Run!</strong></p>
|
|
|
105
|
+
|
|
|
106
|
+ <div class="highlight">
|
|
|
107
|
+ <pre>docker</pre>
|
|
|
108
|
+ </div>
|
|
|
109
|
+ </li>
|
|
102
|
110
|
Continue with the <a href="http://docs.docker.io/en/latest/examples/hello_world/">Hello world</a> example.
|
|
103
|
111
|
</ol>
|
|
104
|
112
|
</section>
|
|
...
|
...
|
@@ -117,7 +125,7 @@
|
|
117
|
117
|
vagrant and an Ubuntu virtual machine.</strong></p>
|
|
118
|
118
|
|
|
119
|
119
|
<ul>
|
|
120
|
|
- <li><a href="http://docs.docker.io/en/latest/installation/macos/">Mac OS X and other linuxes</a></li>
|
|
|
120
|
+ <li><a href="http://docs.docker.io/en/latest/installation/vagrant/">Mac OS X and other linuxes</a></li>
|
|
121
|
121
|
<li><a href="http://docs.docker.io/en/latest/installation/windows/">Windows</a></li>
|
|
122
|
122
|
</ul>
|
|
123
|
123
|
|