- Install Docker.
- Clone this repo by running
git clone https://github.com/bigbinary/wheel.git
. cd wheel
- If using it for the first time, run
docker-compose build
to build the images. - Run
docker-compose run --rm web bin/setup
to create and seed the database. - Run
docker-compose up
to start the application and get things up and running. - From now onwards, we can just run
docker-compose up
from within the root of thewheel
directory to bring up the application.
While re-building images, docker tries to find it's layers in the cache, which might bring-in stale layers.
# this forces docker to not use cached image layers
docker-compose build --no-cache
Run docker ps -a | grep wheel
to get containers related to wheel. Then run docker rm -f $(docker ps -a | grep wheel | awk '{print $1}')
to delete them.
Run docker images | grep wheel
to get images related to wheel. Then run docker rmi -f $(docker images | grep wheel | awk '{print $3}')
to delete them.
Run docker volume ls | grep wheel
to get volumes related to wheel. Then run docker volume rm -f $(docker volume ls | grep wheel | awk '{print $2}')
to delete them.
If you want to try out something slightly more daring, yet effective, then run the following single line command to wipe all of the docker data including containers, images, volumes.
Warning: The following command will wipe all of docker data of all local docker projects and containers:
docker rm -f $(docker ps -a -q) && docker rmi -f $(docker images -q) && docker volume rm -f $(docker volume ls -q)
docker-compose up --build
Run docker system prune -a -f --volumes
to remove all containers, networks, images (both dangling and unreferenced), and volumes.