@@ -72,23 +72,19 @@ instructions for enabling and configuring AppArmor or SELinux.
72
72
73
73
### Install static binaries
74
74
75
- 1 . Download the static binary archive. You can download either the latest
76
- release binaries or a specific version. To find the download link, see the
77
- [ release notes ] ( https://github.com/moby/moby/releases ) for the version
78
- of Docker you want to install. You can choose a ` tar.gz ` archive or ` zip `
79
- archive .
75
+ 1 . Download the static binary archive. Go to
76
+ [ https://download.docker.com/linux/static/stable/ ] ( https:// download.docker.com/linux/static/stable/x86_64/ )
77
+ (or change ` stable ` to ` edge ` or ` test ` ),
78
+ choose your hardware platform, and download the ` .tgz ` file relating to the
79
+ version of Docker CE you want to install .
80
80
81
- 2 . Extract the archive using ` tar ` or ` unzip ` , depending on the format you
82
- downloaded. The ` dockerd ` and ` docker ` binaries are extracted.
81
+ 2 . Extract the archive using the ` tar ` utility. The ` dockerd ` and ` docker `
82
+ binaries are extracted.
83
83
84
84
``` bash
85
85
$ tar xzvf /path/to/< FILE> .tar.gz
86
86
```
87
87
88
- ` ` ` bash
89
- $ unzip /path/to/< FILE> .zip
90
- ` ` `
91
-
92
88
3. ** Optional** : Move the binaries to a directory on your executable path, such
93
89
as ` /usr/bin/` . If you skip this step, you must provide the path to the
94
90
executable when you invoke ` docker` or ` dockerd` commands.
@@ -104,7 +100,8 @@ instructions for enabling and configuring AppArmor or SELinux.
104
100
` ` `
105
101
106
102
If you need to start the daemon with additional options, modify the above
107
- command accordingly.
103
+ command accordingly or create and edit the file ` /etc/docker/daemon.json`
104
+ to add the custom configuration options.
108
105
109
106
5. Verify that Docker is installed correctly by running the ` hello-world`
110
107
image.
@@ -127,23 +124,20 @@ instructions for enabling and configuring AppArmor or SELinux.
127
124
The macOS binary includes the Docker client only. It does not include the
128
125
` dockerd` daemon.
129
126
130
- 1. Download the static binary archive. You can download either the latest
131
- release binaries or a specific version. To find the download link, see the
132
- [release notes](https://github.com/moby/moby/releases) for the version
133
- of Docker you want to install. You can choose a ` tar.gz ` archive or
134
- ` zip ` archive .
127
+ 1. Download the static binary archive. Go to
128
+ [https://download.docker.com/mac/static/stable/x86_64/](https:// download.docker.com/mac/static/stable/x86_64/),
129
+ (or change ` stable ` to ` edge ` or ` test ` ),
130
+ and download the ` .tgz ` file relating to the version of Docker CE you want
131
+ to install .
135
132
136
- 2. Extract the archive using ` tar` or ` unzip ` , depending on the format you
137
- downloaded. The ` docker ` binary is extracted.
133
+ 2. Extract the archive using the ` tar` utility. The ` docker ` binary is
134
+ extracted.
138
135
139
136
` ` ` bash
140
137
$ tar xzvf /path/to/< FILE> .tar.gz
141
138
` ` `
142
139
143
- ` ` ` bash
144
- $ unzip /path/to/< FILE> .zip
145
- ` ` `
146
- 3. ** Optional** : Move the binaries to a directory on your executable path, such
140
+ 3. ** Optional** : Move the binary to a directory on your executable path, such
147
141
as ` /usr/local/bin/` . If you skip this step, you must provide the path to the
148
142
executable when you invoke ` docker` or ` dockerd` commands.
149
143
@@ -152,7 +146,8 @@ The macOS binary includes the Docker client only. It does not include the
152
146
` ` `
153
147
154
148
4. Verify that Docker is installed correctly by running the ` hello-world`
155
- image.
149
+ image. The value of ` < hostname> ` is a hostname or IP address running the
150
+ Docker daemon and accessible to the client.
156
151
157
152
` ` ` bash
158
153
$ sudo docker -H < hostname> run hello-world
@@ -164,43 +159,40 @@ The macOS binary includes the Docker client only. It does not include the
164
159
165
160
# # Install server and client binaries on Windows
166
161
167
- You can install Docker from binaries on Windows Server 2016 or Windows 10.
168
-
169
- - To install both client and server binaries, download the 64-bit binary. The
170
- archive includes ` x86_64` in the path.
171
-
172
- - To install the client only, download the 32-bit binary. The archive includes
173
- ` i386` in the path.
162
+ You can install Docker from binaries on Windows Server 2016 or Windows 10. Both
163
+ the ` dockerd.exe` and ` docker.exe` binaries are included.
174
164
175
165
1. Use the following PowerShell commands to install and start Docker:
176
166
177
167
` ` ` none
178
- Invoke-WebRequest https://get.docker.com/builds/Windows/x86_64/docker-{{ minor-version }}.0-ce.zip -UseBasicParsing -OutFile docker.zip
179
- Expand-Archive docker.zip -DestinationPath $Env :ProgramFiles
180
- Remove-Item -Force docker.zip
168
+ PS C:\> Invoke-WebRequest https://download.docker.com/win/static/stable/x86_64//docker-{{ minor-version }}.0-ce.zip -UseBasicParsing -OutFile docker.zip
169
+
170
+ PS C:\> Expand-Archive docker.zip -DestinationPath $Env :ProgramFiles
171
+
172
+ PS C:\> Remove-Item -Force docker.zip
181
173
182
- dockerd --register-service
174
+ PS C: \> dockerd --register-service
183
175
184
- Start-Service docker
176
+ PS C: \> Start-Service docker
185
177
` ` `
186
178
187
179
2. Verify that Docker is installed correctly by running the ` hello-world`
188
180
image.
189
181
190
182
191
183
` ` ` none
192
- docker run hello-world:nanoserver
184
+ PS C: \> docker run hello-world:nanoserver
193
185
` ` `
194
186
195
187
This command downloads a test image and runs it in a container. When the
196
188
container runs, it prints an informational message and exits.
197
189
198
190
# # Upgrade static binaries
199
191
200
- To upgrade your manual installation of Docker Engine on Linux , first stop any
201
- ` dockerd` processes running locally, then follow the
202
- [ regular installation steps]( # get- the-linux-binaries), overwriting any existing
203
- ` dockerd ` or ` docker ` binaries with the newer versions .
192
+ To upgrade your manual installation of Docker CE , first stop any
193
+ ` dockerd` or ` dockerd.exe ` processes running locally, then follow the
194
+ regular installation steps to install the new version on top of the existing
195
+ version .
204
196
205
197
# # Next steps
206
198
0 commit comments