remove ! from command line
bash does not like it ``` $ JOB=$(docker run base /bin/sh -c "while true; do echo Hello world!; sleep 1; done") bash: !: event not found $ ``` Upstream-commit: 3bb176d8ae7f43ab0d1ca8e03b59f2f137f07530 Component: engine
This commit is contained in:
@@ -148,7 +148,7 @@ Starting a long-running worker process
|
||||
(docker -d || echo "Docker daemon already running") &
|
||||
|
||||
# Start a very useful long-running process
|
||||
JOB=$(docker run base /bin/sh -c "while true; do echo Hello world!; sleep 1; done")
|
||||
JOB=$(docker run base /bin/sh -c "while true; do echo Hello world; sleep 1; done")
|
||||
|
||||
# Collect the output of the job so far
|
||||
docker logs $JOB
|
||||
|
||||
Reference in New Issue
Block a user