Devlog

Docker info

Some docker info and commands I use a lot.

Bash shell

// First check your ID
docker ps
// Then use this ID to get to the bash shell
docker exec -it [ID] bash

Custom prefix

By default Docker prefixes your container and volume names with the directory it’s running in. For example I have a couple of projects with the trunk sub directory where I run docker from. If I run Docker from this sub directory, my volume name will be for example “trunk_db”. To choose a custom prefix you can set the COMPOSE_PROJECT_NAME inside the .env file, for example:

COMPOSE_PROJECT_NAME=my_project_name