On Tue, Jan 13, 2015 at 11:15 AM, r ll <
crq...@gmail.com> wrote:
> If we can do a new docker command like `docker modify`, consider the `docker
> run`,
> modify most of the cgroups options would be also meaningful, if we can
> modify a container's memory limit,
> we should also be able to modify all of these: cpu-shares, cpuset, device
> dynamically,
>
> -m, --memory="" Memory limit (format: <number><optional unit>,
> where unit = b, k, m or g)
>
> -c, --cpu-shares=0 CPU shares (relative weight)
> --cpuset="" CPUs in which to allow execution (0-3, 0,1)
> --device=[] Add a host device to the container (e.g.
> --device=/dev/sdc:/dev/xvdc:rwm)
like the other thread is requesting to add new volume for running container,
is also part of `docker run` and to modify container's dynamic behavior,
-v, --volume=[] Bind mount a volume (e.g., from the host:
-v /host:/container, from Docker: -v /container)
What other `docker run` options would be also meaningful for the
`docker modify`? I am thinking of these
--add-host=[] Add a custom host-to-IP mapping (host:ip)
-c, --cpu-shares=0 CPU shares (relative weight)
--cap-add=[] Add Linux capabilities
--cap-drop=[] Drop Linux capabilities
--cpuset="" CPUs in which to allow execution (0-3, 0,1)
--device=[] Add a host device to the container (e.g.
--device=/dev/sdc:/dev/xvdc:rwm)
-h, --hostname="" Container host name
-m, --memory="" Memory limit (format: <number><optional
unit>, where unit = b, k, m or g)
--privileged=false Give extended privileges to this container
-v, --volume=[] Bind mount a volume (e.g., from the host:
-v /host:/container, from Docker: -v /container)
--volumes-from=[] Mount volumes from the specified container(s)