Wear Sunscreen, Git Rebase, Orphaned Docker Containers

Wear Sunscreen – I somehow forgot this yesterday.

Sometimes during a rebase you get stuck in this weird No changes - did you forget to use 'git add'? question, even though you’ve just added the files in question. git rebase --skip is the answer.

Occasionally during docker-compose up you’ll get a warning like Found orphan containers (xyz …) for this project even though the containers from the warning are not related to the current project. The thing is that docker-compose uses the current directory name as the project name.

If you have the docker-compose.yml in a subdirectory named docker—as many tutorials suggest—docker-compose will use docker as the project name.

The solution is to either set an environment variable with the project name on the command line or in an .env file.