we used docker start –attach <container name> instead
of docker run. We
use the start command, and
rather than naming the image, we specify the name of a container that’s already
loaded. The –attach tells
Docker to connect to the container output so we can see the results.
We stop
containers with docker stop <container
name> and remove them with docker
rm <container name>. We’ll take a look at that below when we work
with applications designed to keep running in the background.
If we
check docker ps again, we still
see two containers.
Post a Comment Blogger Facebook
Click to see the code!
To insert emoticon you must added at least one space before the code.