View Source mix pot.clean (Pots v0.1.2)

Summary

Functions

Breaks out the process arguments and runs different cleanup. tasks depending on whats been passed in.

Remove all docker files created by Pots. This will only affect files that start with Docker and end with .pot

Remove all container images created by Pots. This will only affect images with the label pot_<app-name>

This will run all cleanup functions. Note: it will stop all containers before attempting to remove the images. Excludes running remove_docker_files/0 since it may contain changes the user wants to keep.

Stop all running containers created by Pots. This will only affect containers with the label pot_<app-name>

Functions

Breaks out the process arguments and runs different cleanup. tasks depending on whats been passed in.

  • --files: It will remove all Docker files generated by Pots.
  • --images: It will remove all container images created by Pots.
  • --containers: It will remove all containers created by Pots.

Remove all docker files created by Pots. This will only affect files that start with Docker and end with .pot

Remove all container images created by Pots. This will only affect images with the label pot_<app-name>

This will run all cleanup functions. Note: it will stop all containers before attempting to remove the images. Excludes running remove_docker_files/0 since it may contain changes the user wants to keep.

Link to this function

stop_docker_containers()

View Source

Stop all running containers created by Pots. This will only affect containers with the label pot_<app-name>