mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
hello_world.md - $container_id variable case sensitivity
If you run the tutorial step-by-step, following error occurs: ```$ sudo docker logs $container_id Usage: docker logs CONTAINER Fetch the logs of a container -f, --follow=false: Follow log output``` This is obviously because bash variables are case-sensitive, so it mustn't be `CONTAINER_ID` above. Docker-DCO-1.1-Signed-off-by: Mateusz Sulima <sulima.mateusz@email.com> (github: github_handle)
This commit is contained in:
parent
3a1f0dedc7
commit
dca1c0073f
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ continue to do this until we stop it.
|
||||||
|
|
||||||
**Steps:**
|
**Steps:**
|
||||||
|
|
||||||
$ CONTAINER_ID=$(sudo docker run -d ubuntu /bin/sh -c "while true; do echo hello world; sleep 1; done")
|
$ container_id=$(sudo docker run -d ubuntu /bin/sh -c "while true; do echo hello world; sleep 1; done")
|
||||||
|
|
||||||
We are going to run a simple hello world daemon in a new container made
|
We are going to run a simple hello world daemon in a new container made
|
||||||
from the `ubuntu` image.
|
from the `ubuntu` image.
|
||||||
|
|
Loading…
Reference in a new issue