FreeNAS logo

How to test a new Docker setup

Once you’ve setup Docker on your server, there’s an easy way to make sure Docker is running fine. Ways to check Docker Use docker info command Whatever system you’ve installed Docker on, you can test Docker by running the command below docker info which should output something like … Client: Context: default Debug Mode: false Plugins: buildx: Docker Buildx (Docker Inc., v0.9.1) compose: Docker Compose (Docker Inc., v2.13.0) dev: Docker Dev Environments (Docker Inc....

January 5, 2023 · 3 min · Davide

Delete all stopped Docker containers in one command

Operating dozens of Docker containers on a single host could be problematic. If you are looking for a simple way to delete only stopped containers on your server, you can use the shell script snippet below for container in `docker ps -a --filter "status=exited" --format '{{ .Names}}'`; do echo -e "Removing zombie container $container" docker rm -v $container done Hope it helps 😃

December 2, 2022 · 1 min · Davide