HowTo: Reset a Docker environment

Edit on GitHub

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

Data removal

To remove all the Docker data, use the following instructions.

To reset a Docker environment, follow these steps:

  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.