You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,6 @@ be found.
97
97
+ Add `Isolation` to the /info endpoint [#26255](https://github.com/docker/docker/pull/26255)
98
98
+ Add `userns` to the /info endpoint [#27840](https://github.com/docker/docker/pull/27840)
99
99
- Do not allow more than one mode be requested at once in the services endpoint [#26643](https://github.com/docker/docker/pull/26643)
100
-
+ Add `--mount` flag to `docker create` and `docker run`[#26825](https://github.com/docker/docker/pull/26825)[#28150](https://github.com/docker/docker/pull/28150)
101
100
+ Add capability to /containers/create API to specify mounts in a more granular and safer way [#22373](https://github.com/docker/docker/pull/22373)
102
101
+ Add `--format` flag to `network ls` and `volume ls`[#23475](https://github.com/docker/docker/pull/23475)
103
102
* Allow the top-level `docker inspect` command to inspect any kind of resource [#23614](https://github.com/docker/docker/pull/23614)
Copy file name to clipboardExpand all lines: contrib/completion/fish/docker.fish
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -137,7 +137,6 @@ complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l link -d 'Add
137
137
complete-c docker -A-f-n'__fish_seen_subcommand_from create'-s m -l memory -d'Memory limit (format: <number>[<unit>], where unit = b, k, m or g)'
138
138
complete-c docker -A-f-n'__fish_seen_subcommand_from create'-l mac-address -d'Container MAC address (e.g. 92:d0:c6:0a:29:33)'
139
139
complete-c docker -A-f-n'__fish_seen_subcommand_from create'-l memory-swap -d"Total memory usage (memory + swap), set '-1' to disable swap (format: <number>[<unit>], where unit = b, k, m or g)"
140
-
complete-c docker -A-f-n'__fish_seen_subcommand_from create'-l mount -d'Attach a filesystem mount to the container'
141
140
complete-c docker -A-f-n'__fish_seen_subcommand_from create'-l name -d'Assign a name to the container'
142
141
complete-c docker -A-f-n'__fish_seen_subcommand_from create'-l net -d'Set the Network mode for the container'
143
142
complete-c docker -A-f-n'__fish_seen_subcommand_from create'-s P -l publish-all -d'Publish all exposed ports to random ports on the host interfaces'
@@ -329,7 +328,6 @@ complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l link -d 'Add li
329
328
complete-c docker -A-f-n'__fish_seen_subcommand_from run'-s m -l memory -d'Memory limit (format: <number>[<unit>], where unit = b, k, m or g)'
330
329
complete-c docker -A-f-n'__fish_seen_subcommand_from run'-l mac-address -d'Container MAC address (e.g. 92:d0:c6:0a:29:33)'
331
330
complete-c docker -A-f-n'__fish_seen_subcommand_from run'-l memory-swap -d"Total memory usage (memory + swap), set '-1' to disable swap (format: <number>[<unit>], where unit = b, k, m or g)"
332
-
complete-c docker -A-f-n'__fish_seen_subcommand_from run'-l mount -d'Attach a filesystem mount to the container'
333
331
complete-c docker -A-f-n'__fish_seen_subcommand_from run'-l name -d'Assign a name to the container'
334
332
complete-c docker -A-f-n'__fish_seen_subcommand_from run'-l net -d'Set the Network mode for the container'
335
333
complete-c docker -A-f-n'__fish_seen_subcommand_from run'-s P -l publish-all -d'Publish all exposed ports to random ports on the host interfaces'
Copy file name to clipboardExpand all lines: docs/reference/commandline/run.md
-16Lines changed: 0 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,6 @@ Options:
92
92
--memory-reservation string Memory soft limit
93
93
--memory-swap string Swap limit equal to memory plus swap: '-1' to enable unlimited swap
94
94
--memory-swappiness int Tune container memory swappiness (0 to 100) (default -1)
95
-
--mount value Attach a filesystem mount to the container (default [])
96
95
--name string Assign a name to the container
97
96
--network-alias value Add network-scoped alias for the container (default [])
98
97
--network string Connect a container to a network
@@ -264,21 +263,6 @@ Docker daemon.
264
263
265
264
For in-depth information about volumes, refer to [manage data in containers](https://docs.docker.com/engine/tutorials/dockervolumes/)
266
265
267
-
### Add bind-mounts or volumes using the --mount flag
268
-
269
-
The `--mount` flag allows you to mount volumes, host-directories and `tmpfs`
270
-
mounts in a container.
271
-
272
-
The `--mount` flag supports most options that are supported by the `-v` or the
273
-
`--volume` flag, but uses a different syntax. For in-depth information on the
274
-
`--mount` flag, and a comparison between `--volume` and `--mount`, refer to
275
-
the [service create command reference](service_create.md#add-bind-mounts-or-volumes).
276
-
277
-
Examples:
278
-
279
-
$ docker run --read-only --mount type=volume,target=/icanwrite busybox touch /icanwrite/here
280
-
$ docker run -t -i --mount type=bind,src=/data,dst=/data busybox sh
0 commit comments