diff options
author | Joffrey F <joffrey@docker.com> | 2014-08-22 13:26:03 +0200 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2014-08-22 13:26:03 +0200 |
commit | 24eb16c33a66e40534c1c585488c00cb2e468a3e (patch) | |
tree | 3e019241b7b36379bd7662dc430359c173f8dd73 /README.md | |
parent | dba1c454546ec1f78eb94484bb33c7b0748fe8a8 (diff) | |
parent | 3987a8f5e5fbf391a8dc2eaa2850fe5de63d4ff9 (diff) | |
download | docker-py-24eb16c33a66e40534c1c585488c00cb2e468a3e.tar.gz |
Amended create_container documentation
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -78,10 +78,16 @@ to those for the `docker run` command except it doesn't support the attach options (`-a`). See "Port bindings" and "Using volumes" below for more information on how to create port bindings and volume mappings. +`command` is the command to be run in the container. String or list types are +accepted. + The `environment` variable accepts a dictionary or a list of strings in the following format `["PASSWORD=xxx"]` or `{"PASSWORD": "xxx"}`. -The `mem_limit` variable accepts float values (which represent the memory limit of the created container in bytes) or a string with a units identification char ('100000b', 1000k', 128m', '1g'). If a string is specified without a units character, bytes are assumed as an intended unit. +The `mem_limit` variable accepts float values (which represent the memory limit +of the created container in bytes) or a string with a units identification char +('100000b', 1000k', 128m', '1g'). If a string is specified without a units +character, bytes are assumed as an intended unit. `volumes_from` and `dns` arguments raise TypeError exception if they are used against v1.10 of docker remote API. Those arguments should be passed to |