Skip to content

Collection of various Dockerfiles

License

Notifications You must be signed in to change notification settings

faf0/dockerfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Collection of various Dockerfiles.

See sub-folders for README.md files.

Podman Versus Docker

Consider Podman instead of Docker, as Podman is daemonless and is designed to run rootless containers.

Additionally, Podman offers useful features like userns, which enables remapping user IDs and group IDs within the container. This allows for host volume access with the permissions of the host user.

Useful Commands

For most podman commands in this repositoriy, docker can be used instead.

Show Images

podman images

Show Running Containers

podman ps

Show Logs

podman logs container-id # prefix of ID or name found

Determine Image Entrypoint and Cmd

podman inspect image-name
podman inspect -f '{{.Config.Entrypoint}}' image-name
podman inspect -f '{{.Config.Cmd}}' image-name

Get a Shell in Container

In case the image has a shell, you can try to run a container with a shell like sh or bash as the entrypoint:

podman run --entrypoint sh --rm -it image-name
podman run --entrypoint bash --rm -it image-name

Stop Containers

podman stop container-id # prefix of ID or name found

Free Up Space

Do not run this command unless you want to free up space by removing currently unused resources, such as dangling images, unused networks, stopped containers, and build caches:

podman system prune     # only deletes dangling images
podman system prune -a  # -a deletes all images not used by a running container
podman system prune -f  # -f to force running the command without confirmation
podman system prune -af # delete all unused images without confirmation

About

Collection of various Dockerfiles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published