docker commands
Less than 1 minute
docker commands
- remove all
<none>
imagespodman rmi `docker images | grep '<none>' | awk '{print $3}'`
- remove all stopped containers
podman container prune # podman container prune -a
- remove all docker images not used
podman image prune #crictl rmi --prune
- remove all docker images not referenced by any container
podman image prune -a
- generate htpasswd file
docker run --rm wangz2019/jiuying-htpasswd:1.2.0 my-username my-password > htpasswd
- generate gradle projects
docker run --rm \ -v $(pwd):/app \ -w /app \ docker.io/gradle:8.4.0-jdk11-focal \ gradle init \ --dsl kotlin \ --type java-application \ --project-name hello-world \ --package com.example.helloworld \ --test-framework junit-jupiter
- find ip address of a container
podman inspect --format='{{.NetworkSettings.IPAddress}}' minio-server