Browse code

Fix ulimit command form

The ulimit is builtin, so we need shell form to execute it.

Signed-off-by: Kai Qiang Wu(Kennan) <wkqwu@cn.ibm.com>

Kai Qiang Wu(Kennan) authored on 2016/01/19 16:44:48
Showing 1 changed files
... ...
@@ -539,7 +539,7 @@ available in the default container, you can set these using the `--ulimit` flag.
539 539
 `--ulimit` is specified with a soft and hard limit as such:
540 540
 `<type>=<soft limit>[:<hard limit>]`, for example:
541 541
 
542
-    $ docker run --ulimit nofile=1024:1024 --rm debian ulimit -n
542
+    $ docker run --ulimit nofile=1024:1024 --rm debian sh -c "ulimit -n"
543 543
     1024
544 544
 
545 545
 > **Note:**