Immich is a tool that provides a simple and efficient way to detect and remove unused Docker images and containers. It is available on GitHub and can be installed on Clear Linux Latest to optimize the storage space used by Docker.
This tutorial will guide you through the process of installing Immich on Clear Linux Latest.
Before proceeding with the installation of Immich, you should have the following:
To install Immich on Clear Linux Latest, you need to clone the Immich repository from GitHub. Open a terminal and run the following command:
git clone https://github.com/alextran1502/immich.git
This will download the Immich repository to your current directory.
Once you have cloned the Immich repository, navigate to the immich directory and run the following command:
docker build --no-cache -t immich .
This command will build the Immich Docker image with the specified tag immich
.
After building the Immich Docker image, run the container with the following command:
docker run --rm -it --privileged -v /var/run/docker.sock:/var/run/docker.sock immich -p
This command will start the Immich container with privileged access and mount the Docker socket to the container /var/run/docker.sock
directory. The -p
option tells Immich to print the size of each container image and the total space that can be freed up.
Once the Immich container is running, it will list all the Docker images and containers that are not being used. You can remove these images and containers using Docker CLI commands.
For example, to remove a Docker image, use the following command:
docker rmi <image_name>
And to remove a Docker container, use the following command:
docker rm <container_name>
Once you have removed the unused Docker images and containers, you can stop the Immich container using the Ctrl+C
command on the terminal.
In this tutorial, you learned how to install Immich on Clear Linux Latest and use it to optimize the storage space used by Docker. Immich is a valuable tool to keep your Docker environment clean and efficient, especially in production environments where storage space is limited.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!