Docker
Cleaning up
Cleanup the docker virtual disk for images that are partial stages from builds:
Nuke
To wipe containers and images out and start fresh. This has to happen from time to time, as Docker uses a virtual disk that has a fixed size, usually between 15Gb and 80Gb. This is shown as a function so it can be copied into your .bashrc if you want to do so.
Remove files matching a name.
This will remove anything that text matches a term you enter on the function.
Start/Stop
Stopping docker containers running.
Docker compose
To issue commands with docker-compose, you need to be in the root folder of that drive (that contains the docker-compose.yml files). Otherwise, your results MAY vary. You cannot issue docker-compose commands from INSIDE a container.
To stop everything without deleting all the data:
To stop everything AND delete all the data (the database is the thing that matters here).
Inspecting a Stopped Container
Inspecting a stopped container's file system is a thing that needs to be done from time to time. To do this:
Last updated