HowTo - Reset a Docker environment

Edit on GitHub

Sometimes, after experimenting or getting unexpected behavior from the docker/sdk up command, it may be useful to reset the entire Docker environment and start from scratch.

Data removal

By following the instructions below, you remove all the Docker data.

To reset a Docker environment:

  1. Delete all containers, networks, unused images, and build cache:
sudo docker/sdk prune
  1. In the project root directory, clean data, bootstrap the deploy file and start the instance:
docker/sdk clean-data && docker/sdk boot {deploy_file_name} && docker/sdk up

You’ve restarted your instance from scratch.