docker-compose build .
docker-compose up --detach
To demonstrate how quickly you can fill your disk run these commands;
df -h # display current disk utilisation
docker run -it mysql:5.7 bash -c 'echo "Hello"'
docker run -it amazonlinux:latest bash -c 'echo "Hello"'
docker run -it ubuntu:trusty bash -c 'echo "Hello"'
docker run -it ubuntu:latest bash -c 'echo "Hello"'
df -h # display final disk utilisation
Now that you’ve filled your disk see if you can recover the space using these commands to list and clean layers, images, and containers:
docker ps --all # list all containers
docker images --all # list all images
docker rmi $IMAGE_SHA # remove image,multiple SHAs permitted
docker rm $CONTAINER_SHA # remove a containers image, multiple SHAs permitted
docker system prune --all --force # burn it all down with gusto (use with caution)