Building Images
docker build -t domino-express .Creates a new docker container named domino-express, using the current folder („.“).
Starting / Stopping
docker run --name dominoexpress -p 3000:3000 -d -it domino-expressStarts the image domino-express, allows access to port 3000 and gives the container the static name „dominoexpress„. If option –name is not available, a random name is generated.
Additional parameter -e allows setting of environment variables.
docker stop dominoexpressStops the container with the name „dominoexpress“
List instances
docker psLists the current running containers.
docker ps -aLists all containers, even if they have stoped working / not running.
Delete container
docker rm dominoexpressDeletes the container with the name „dominoexpress„.
Logs
docker logs dominoexpressGet the logs of the container „dominoexpress„. Usefull to check why a container crashed.
Getting „inside“
docker exec -it dominoexpress bashStarts a process (in this case a bash) in the running container „dominoexpress„.
