4.1 KiB
4.1 KiB
website | obj | repo |
---|---|---|
https://podman.io/ | application | https://github.com/containers/podman |
Podman
#refactor
Podman is a rootless container engine.
Usage
Container Management:
- podman-attach
- Description: Attach to a running container.
- Usage:
podman attach [OPTIONS] CONTAINER
- Flags:
-i, --interactive
: Attach with standard input connected.-t, --tty
: Allocate a pseudo-TTY.
- podman-container
- Description: Manage containers.
- Usage:
podman container [SUBCOMMAND] [OPTIONS]
- Subcommands:
create
: Create a new container.list
: List containers.inspect
: Display container configuration.start
: Start one or more containers.stop
: Stop one or more running containers.restart
: Restart one or more containers.pause
: Pause one or more containers.unpause
: Unpause one or more containers.kill
: Kill the main process in one or more containers.rm
: Remove one or more containers.- ... and more.
Image Management:
- podman-build
- Description: Build a container image using a Containerfile.
- Usage:
podman build [OPTIONS] PATH | URL | -
- Flags:
-t, --tag
: Name and optionally a tag for the image.
- podman-commit
- Description: Create a new image based on the changed container.
- Usage:
podman commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]]
- Flags:
--change
: Apply Dockerfile instruction to the image.
- podman-image
- Description: Manage images.
- Usage:
podman image [SUBCOMMAND] [OPTIONS]
- Subcommands:
list
: List images in local storage.inspect
: Display image configuration.remove
: Remove one or more locally stored images.- ... and more.
- podman-import
- Description: Import a tarball and save it as a filesystem image.
- Usage:
podman import [OPTIONS] FILE|- [REPOSITORY[:TAG]]
- Flags:
-i, --input
: Read from specified file.
- podman-pull
- Description: Pull an image from a registry.
- Usage:
podman pull [OPTIONS] IMAGE[:TAG|@DIGEST]
- podman-push
- Description: Push an image, manifest list, or image index from local storage to elsewhere.
- Usage:
podman push [OPTIONS] IMAGE[:TAG] [DESTINATION]
- podman-save
- Description: Save image(s) to an archive.
- Usage:
podman save [OPTIONS] IMAGE [IMAGE...]
- Flags:
-o, --output
: Write to specified file.
Execution and Interaction:
- podman-exec
- Description: Execute a command in a running container.
- Usage:
podman exec [OPTIONS] CONTAINER COMMAND [ARG...]
- Flags:
-i, --interactive
: Attach with standard input connected.-t, --tty
: Allocate a pseudo-TTY.
- podman-logs
- Description: Display the logs of one or more containers.
- Usage:
podman logs [OPTIONS] CONTAINER [CONTAINER...]
- Flags:
-f, --follow
: Follow log output.
- podman-ps
- Description: Print out information about containers.
- Usage:
podman ps [OPTIONS]
- Flags:
--all
: Show all containers (including stopped).
Network and Volume Management:
- podman-cp
- Description: Copy files/folders between a container and the local filesystem.
- Usage:
podman cp [OPTIONS] SRC_CONTAINER:SRC_PATH DEST_PATH | DEST_CONTAINER:DEST_PATH
- podman-network
- Description: Manage Podman networks.
- Usage:
podman network [OPTIONS] COMMAND
- Subcommands:
list
: List networks.inspect
: Display network configuration.create
: Create a new network.delete
: Remove one or more networks.- ... and more.
- podman-volume
- Description: Simple management tool for volumes.
- Usage:
podman volume [SUBCOMMAND] [OPTIONS]
- Subcommands:
list
: List volumes.create
: Create a new volume.inspect
: Display volume configuration.remove
: Remove one or more volumes.- ... and more.