mirror of https://github.com/docker/cli.git
CLI flag for docker create(run) to change block device size.
Signed-off-by: Shishir Mahajan <shishir.mahajan@redhat.com>
This commit is contained in:
parent
52ccec4cbc
commit
791a5fc5c1
|
@ -81,6 +81,7 @@ Creates a new container.
|
||||||
--security-opt=[] Security options
|
--security-opt=[] Security options
|
||||||
--stop-signal="SIGTERM" Signal to stop a container
|
--stop-signal="SIGTERM" Signal to stop a container
|
||||||
--shm-size=[] Size of `/dev/shm`. The format is `<number><unit>`. `number` must be greater than `0`. Unit is optional and can be `b` (bytes), `k` (kilobytes), `m` (megabytes), or `g` (gigabytes). If you omit the unit, the system uses bytes. If you omit the size entirely, the system uses `64m`.
|
--shm-size=[] Size of `/dev/shm`. The format is `<number><unit>`. `number` must be greater than `0`. Unit is optional and can be `b` (bytes), `k` (kilobytes), `m` (megabytes), or `g` (gigabytes). If you omit the unit, the system uses bytes. If you omit the size entirely, the system uses `64m`.
|
||||||
|
--storage-opt=[] Set storage driver options per container
|
||||||
-t, --tty Allocate a pseudo-TTY
|
-t, --tty Allocate a pseudo-TTY
|
||||||
-u, --user="" Username or UID
|
-u, --user="" Username or UID
|
||||||
--userns="" Container user namespace
|
--userns="" Container user namespace
|
||||||
|
@ -145,6 +146,13 @@ then be used from the subsequent container:
|
||||||
drwx--S--- 2 1000 staff 460 Dec 5 00:51 .ssh
|
drwx--S--- 2 1000 staff 460 Dec 5 00:51 .ssh
|
||||||
drwxr-xr-x 32 1000 staff 1140 Dec 5 04:01 docker
|
drwxr-xr-x 32 1000 staff 1140 Dec 5 04:01 docker
|
||||||
|
|
||||||
|
Set storage driver options per container.
|
||||||
|
|
||||||
|
$ docker create -it --storage-opt size=120G fedora /bin/bash
|
||||||
|
|
||||||
|
This (size) will allow to set the container rootfs size to 120G at creation time.
|
||||||
|
User cannot pass a size less than the Default BaseFS Size.
|
||||||
|
|
||||||
### Specify isolation technology for container (--isolation)
|
### Specify isolation technology for container (--isolation)
|
||||||
|
|
||||||
This option is useful in situations where you are running Docker containers on
|
This option is useful in situations where you are running Docker containers on
|
||||||
|
|
|
@ -83,6 +83,7 @@ parent = "smn_cli"
|
||||||
--security-opt=[] Security Options
|
--security-opt=[] Security Options
|
||||||
--sig-proxy=true Proxy received signals to the process
|
--sig-proxy=true Proxy received signals to the process
|
||||||
--stop-signal="SIGTERM" Signal to stop a container
|
--stop-signal="SIGTERM" Signal to stop a container
|
||||||
|
--storage-opt=[] Set storage driver options per container
|
||||||
-t, --tty Allocate a pseudo-TTY
|
-t, --tty Allocate a pseudo-TTY
|
||||||
-u, --user="" Username or UID (format: <name|uid>[:<group|gid>])
|
-u, --user="" Username or UID (format: <name|uid>[:<group|gid>])
|
||||||
--userns="" Container user namespace
|
--userns="" Container user namespace
|
||||||
|
@ -167,6 +168,13 @@ flag exists to allow special use-cases, like running Docker within Docker.
|
||||||
The `-w` lets the command being executed inside directory given, here
|
The `-w` lets the command being executed inside directory given, here
|
||||||
`/path/to/dir/`. If the path does not exists it is created inside the container.
|
`/path/to/dir/`. If the path does not exists it is created inside the container.
|
||||||
|
|
||||||
|
### Set storage driver options per container
|
||||||
|
|
||||||
|
$ docker create -it --storage-opt size=120G fedora /bin/bash
|
||||||
|
|
||||||
|
This (size) will allow to set the container rootfs size to 120G at creation time.
|
||||||
|
User cannot pass a size less than the Default BaseFS Size.
|
||||||
|
|
||||||
### Mount tmpfs (--tmpfs)
|
### Mount tmpfs (--tmpfs)
|
||||||
|
|
||||||
$ docker run -d --tmpfs /run:rw,noexec,nosuid,size=65536k my_image
|
$ docker run -d --tmpfs /run:rw,noexec,nosuid,size=65536k my_image
|
||||||
|
|
|
@ -64,6 +64,7 @@ docker-create - Create a new container
|
||||||
[**--read-only**]
|
[**--read-only**]
|
||||||
[**--restart**[=*RESTART*]]
|
[**--restart**[=*RESTART*]]
|
||||||
[**--security-opt**[=*[]*]]
|
[**--security-opt**[=*[]*]]
|
||||||
|
[**--storage-opt**[=*[]*]]
|
||||||
[**--stop-signal**[=*SIGNAL*]]
|
[**--stop-signal**[=*SIGNAL*]]
|
||||||
[**--shm-size**[=*[]*]]
|
[**--shm-size**[=*[]*]]
|
||||||
[**-t**|**--tty**]
|
[**-t**|**--tty**]
|
||||||
|
@ -325,6 +326,13 @@ unit, `b` is used. Set LIMIT to `-1` to enable unlimited swap.
|
||||||
"seccomp:unconfined" : Turn off seccomp confinement for the container
|
"seccomp:unconfined" : Turn off seccomp confinement for the container
|
||||||
"seccomp:profile.json : White listed syscalls seccomp Json file to be used as a seccomp filter
|
"seccomp:profile.json : White listed syscalls seccomp Json file to be used as a seccomp filter
|
||||||
|
|
||||||
|
**--storage-opt**=[]
|
||||||
|
Storage driver options per container
|
||||||
|
|
||||||
|
$ docker create -it --storage-opt size=120G fedora /bin/bash
|
||||||
|
|
||||||
|
This (size) will allow to set the container rootfs size to 120G at creation time. User cannot pass a size less than the Default BaseFS Size.
|
||||||
|
|
||||||
**--stop-signal**=*SIGTERM*
|
**--stop-signal**=*SIGTERM*
|
||||||
Signal to stop a container. Default is SIGTERM.
|
Signal to stop a container. Default is SIGTERM.
|
||||||
|
|
||||||
|
|
|
@ -67,6 +67,7 @@ docker-run - Run a command in a new container
|
||||||
[**--restart**[=*RESTART*]]
|
[**--restart**[=*RESTART*]]
|
||||||
[**--rm**]
|
[**--rm**]
|
||||||
[**--security-opt**[=*[]*]]
|
[**--security-opt**[=*[]*]]
|
||||||
|
[**--storage-opt**[=*[]*]]
|
||||||
[**--stop-signal**[=*SIGNAL*]]
|
[**--stop-signal**[=*SIGNAL*]]
|
||||||
[**--shm-size**[=*[]*]]
|
[**--shm-size**[=*[]*]]
|
||||||
[**--sig-proxy**[=*true*]]
|
[**--sig-proxy**[=*true*]]
|
||||||
|
@ -476,6 +477,13 @@ its root filesystem mounted as read only prohibiting any writes.
|
||||||
"apparmor=unconfined" : Turn off apparmor confinement for the container
|
"apparmor=unconfined" : Turn off apparmor confinement for the container
|
||||||
"apparmor=your-profile" : Set the apparmor confinement profile for the container
|
"apparmor=your-profile" : Set the apparmor confinement profile for the container
|
||||||
|
|
||||||
|
**--storage-opt**=[]
|
||||||
|
Storage driver options per container
|
||||||
|
|
||||||
|
$ docker run -it --storage-opt size=120G fedora /bin/bash
|
||||||
|
|
||||||
|
This (size) will allow to set the container rootfs size to 120G at creation time. User cannot pass a size less than the Default BaseFS Size.
|
||||||
|
|
||||||
**--stop-signal**=*SIGTERM*
|
**--stop-signal**=*SIGTERM*
|
||||||
Signal to stop a container. Default is SIGTERM.
|
Signal to stop a container. Default is SIGTERM.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue