Data volume containers are special; they can be stopped and still fulfill their purpose. Personally, I like to see all containers in use when executing
docker ps command, since I like to delete stopped containers once in a while.
This is totally up to you. If you're okay with keeping the container stopped, you can start it using this command:
docker run –d oskarhane/data true
true argument is just there to enter a valid command, and the
–d argument places the container in detached mode, running in the background.
If you want to keep the container running, you need to place a service in the foreground, like this:
docker run –d oskarhane/data tail –f /dev/null
The output of the preceding command is as follows: