Docker containers
From Do you speak Drupalish? Featured Drupal wiki-like documentation
Contents
Am I inside the container?
- hostname
- If you are in the host machine, you get a nice name. Otherwise, you get an automatically assigned docker container id
- check OS version
- cat /etc/redhat-release
Changing docker containers
docker cli
After exit from container
- docker ps -all
- docker start container_id
- docker attach container_id
- back into container shell
- mai ctrl+C if hangs
Exist and leave container running
- You can detach from the container and leave it running with CTRL-p CTRL-q. (both of them) via https://docs.docker.com/engine/userguide/networking/dockernetworks/
Remove containers
remove all containers
- docker rm --force `docker ps -qa`
BackLinks
- Docker (← links)
- Docker commit (← links)