| 選項 |
功能 |
| -d, --detach |
Run container in background and print container ID |
| -e, --env |
Set environment variables |
| -h, --hostname |
Container host name |
| -it |
Allocate a pseudo-TTY connected to the container’s stdin |
| --link |
Add link to another container |
| --name |
Assign a name to the container |
| -p, --publish |
Publish a container’s port(s) to the host |
| --rm |
Automatically remove the container when it exits |
| --read-only |
Mount the container’s root filesystem as read only |
| --restart |
Restart policy to apply when a container exits |
| -v, --volume |
Bind mount a volume |
留言
張貼留言