Info and usage of Docker Commands for Orion Broker
|docker ps||List all running containers|
|docker ps -a||List all created containers (including stopped containers)|
|docker attach [instance_name]||Connect to a running Docker container|
|docker start [instance_name]||Start a stopped container|
|docker inspect [instance_name]||View details of a Docker container, including details of mounted folders|
More commands can be found in Docker Documentation.
Use Docker's restart policy to always restart the container if it exits.
docker run -it --restart=always \ ...
Adding the option
--detach will start the container without attaching.
docker run -itd \ ...
More information can be found in Docker documentation.