Skip to content

Commit 046cd37

Browse files
authored
Merge pull request wsargent#126 from H4M1O/add-options-t_d_and_name
Add options t d and name
2 parents 8e351d0 + 720e356 commit 046cd37

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ If you are a complete Docker newbie, you should probably follow the [series of t
101101
* [`docker rm`](https://docs.docker.com/engine/reference/commandline/rm) deletes a container.
102102
* [`docker update`](https://docs.docker.com/engine/reference/commandline/update/) updates a container's resource limits.
103103

104-
Normally if you run a container without options it will start and stop immediately, if you want keep it running you can use the command, `docker run -td container_id` this will use the option -t that will allocate a pseudo-TTY session and -d that will detach automatically the container (run container in background and print container ID).
104+
Normally if you run a container without options it will start and stop immediately, if you want keep it running you can use the command, `docker run -td container_id` this will use the option `-t` that will allocate a pseudo-TTY session and `-d` that will detach automatically the container (run container in background and print container ID).
105105

106106
If you want a transient container, `docker run --rm` will remove the container after it stops.
107107

@@ -111,7 +111,7 @@ If you want to remove also the volumes associated with the container, the deleti
111111

112112
There's also a [logging driver](https://docs.docker.com/engine/admin/logging/overview/) available for individual containers in docker 1.10. To run docker with a custom log driver (i.e., to syslog), use `docker run --log-driver=syslog`.
113113

114-
Another useful option is `docker run --name yourname docker_image` because when you specify the --name inside the run command this will allow you to start and stop a container by calling it with the name the you specified when you created it.
114+
Another useful option is `docker run --name yourname docker_image` because when you specify the `--name` inside the run command this will allow you to start and stop a container by calling it with the name the you specified when you created it.
115115

116116
### Starting and Stopping
117117

0 commit comments

Comments
 (0)