Orion Protocol

Docker Commands

Info and usage of Docker Commands for Orion Broker


Docker commands

CommandDescription
docker psList all running containers
docker ps -aList 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.

Optional commands

Use Docker's restart policy to always restart the container if it exits.

docker run -it --restart=always \ ...

Adding the option -d or --detach will start the container without attaching.

docker run -itd \ ...

More information can be found in Docker documentation.

Edit on GitHub