docker-clean command not found
In this troubleshooting guide we learn how to fix docker-clean command not found error message
Introduction
When you run more command in linux terminal / console, you get the following error message
docker-clean: command not found
or when using sudo you get the following error message
sudo: docker-clean: command not found
Solutions to docker-clean: command not found
How To Fix docker-clean: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu docker-clean is provided by docker-clean package.
docker-clean is:
docker-clean is simple Shell script utility to clean up the Docker Daemon, required Docker Daemon version (>= 1.9).
Usages:
- docker-clean stop: Stops and removes all containers, cleans dangling volumes,and networks
- docker-clean images: Removes all tagged and untagged images, stopped containers, dangling volumes, and networks
- docker-clean run : Removes all stopped containers, untagged images, dangling volumes, and networks
- docker-clean all: Stops and removes all containers, images, volumes and networks
To fix this problem, we can install more using the command below.
sudo apt-get -y install docker-clean
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install docker-clean.
sudo apt -y install docker-clean
Or if you have aptitude installed you can use the following command.
sudo aptitude install docker-clean
Summary
In this tutorial we learn how to fix docker-clean command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.