Skip to content

Instantly share code, notes, and snippets.

@garyconstable
Last active May 12, 2019 22:37
Show Gist options
  • Save garyconstable/c2351b8034454e0771559c65cf21ad32 to your computer and use it in GitHub Desktop.
Save garyconstable/c2351b8034454e0771559c65cf21ad32 to your computer and use it in GitHub Desktop.
Docker Commands

Docker compose up (build)

docker-compose up -d

Find IP Address of container:

docker inspect test1-mariadb | grep IPAddress

Use the command to get a bash shell in the container.

docker exec -it <container name> /bin/bash
docker exec -it <container name> /sh

Tidy up | free space | prune

docker system prune -a --volumes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment