Skip to content

Commit

Permalink
update run
Browse files Browse the repository at this point in the history
  • Loading branch information
llitfkitfk committed Oct 10, 2014
1 parent 009d8b8 commit 55055c6
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,11 @@ docker 生态圈
[查看](https://raw.githubusercontent.com/llitfkitfk/docker-tutorial-cn/master/docker_ecosys.png)



Developed By
------------

* ####llitfkitfk
####llitfkitfk


   **Email** - [email protected]
Expand Down
38 changes: 34 additions & 4 deletions run/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,51 @@ OPTIONS
```
```
// 如果有error信息 将会输出error信息
sudo docker run -a stderr ubuntu echo test
sudo docker run -a stderr ubuntu echo test
```
* -c

```

//CPU分配
```

* -d
* -e

```
//后台运行container并输出container的id
sudo docker run -d ubuntu /bin/bash
```
* -e, --env

```
//设置环境变量
$ sudo docker run --env TEST_FOO="This is a test" busybox env | grep TEST_FOO
TEST_FOO=This is a test
```
* -h

```
//设置host name
sudo docker run -d -h www.example.com ubuntu /bin/bash
```
* -i

```
//保持输入打开
sudo docker run -i ubuntu /bin/bash
```
* -m

```
//内存管理
sudo docker run -d -m 100m ubuntu /bin/bash
```

* -p

```

```
* -P
* -t
* -u
Expand Down

0 comments on commit 55055c6

Please sign in to comment.