Docker containers

From Do you speak Drupalish? Featured Drupal wiki-like documentation
Jump to: navigation, search

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
    • List all containers via
    • double click in putty to copy to clipboard container_id
  • docker start container_id
  • docker attach container_id
    • back into container shell
    • mai ctrl+C if hangs

Exist and leave container running

Remove containers

remove all containers