Reset Docker environments

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.

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.