github.com/containers/libpod@v1.9.4-0.20220419124438-4284fd425507/transfer.md (about)

     1  ![PODMAN logo](logo/podman-logo-source.svg)
     2  # Podman Usage Transfer
     3  
     4  This document outlines useful information for ops and dev transfer as it relates to infrastructure that utilizes `Podman`.
     5  
     6  ## Operational Transfer
     7  
     8  ## Abstract
     9  
    10  Podman is a tool for managing Pods, Containers, and Container Images.  The CLI
    11  for Podman is based on the Docker CLI, although Podman does not require a
    12  runtime daemon to be running in order to function.
    13  
    14  ## System Tools
    15  
    16  Many traditional tools will still be useful, such as `pstree`, `nsenter` and `lsns`.
    17  As well as some systemd helpers like `systemd-cgls` and `systemd-cgtop` are still just as applicable.
    18  
    19  ## Equivalents
    20  
    21  For many troubleshooting and information collection steps, there may be an existing pattern.
    22  Following provides equivalent with `Podman` tools for gathering information or jumping into containers, for operational use.
    23  
    24  | Existing Step | `Podman` (and friends) |
    25  | :--- | :--- |
    26  | `docker run`  | [`podman run`](./docs/podman-run.1.md) |
    27  | `docker exec` | [`podman exec`](./docs/podman-exec.1.md) |
    28  | `docker info` | [`podman info`](./docs/podman-info.1.md)  |
    29  | `docker inspect` | [`podman inspect`](./docs/podman-inspect.1.md)       |
    30  | `docker logs` | [`podman logs`](./docs/podman-logs.1.md)                 |
    31  | `docker ps`   | [`podman ps`](./docs/podman-ps.1.md) |
    32  | `docker stats`| [`podman stats`](./docs/podman-stats.1.md)|
    33  
    34  ## Development Transfer
    35  
    36  There are other equivalents for these tools
    37  
    38  | Existing Step | `Podman` (and friends) |
    39  | :--- | :--- |
    40  | `docker attach`  | [`podman attach`](./docs/podman-attach.1.md)    |
    41  | `docker cp`      | [`podman cp`](./docs/podman-cp.1.md)            |
    42  | `docker build`   | [`podman build`](./docs/podman-build.1.md)      |
    43  | `docker commit`  | [`podman commit`](./docs/podman-commit.1.md)    |
    44  | `docker container`|[`podman container`](./docs/podman-container.1.md) |
    45  | `docker create`  | [`podman create`](./docs/podman-create.1.md)    |
    46  | `docker diff`    | [`podman diff`](./docs/podman-diff.1.md)        |
    47  | `docker events`  | [`podman events`](./docs/podman-events.1.md)    |
    48  | `docker export`  | [`podman export`](./docs/podman-export.1.md)    |
    49  | `docker history` | [`podman history`](./docs/podman-history.1.md)  |
    50  | `docker image`   | [`podman image`](./docs/podman-image.1.md)        |
    51  | `docker images`  | [`podman images`](./docs/podman-images.1.md)    |
    52  | `docker import`  | [`podman import`](./docs/podman-import.1.md)    |
    53  | `docker kill`    | [`podman kill`](./docs/podman-kill.1.md)        |
    54  | `docker load`    | [`podman load`](./docs/podman-load.1.md)        |
    55  | `docker login`   | [`podman login`](./docs/podman-login.1.md)      |
    56  | `docker logout`  | [`podman logout`](./docs/podman-logout.1.md)    |
    57  | `docker pause`   | [`podman pause`](./docs/podman-pause.1.md)      |
    58  | `docker ps`      | [`podman ps`](./docs/podman-ps.1.md)            |
    59  | `docker pull`    | [`podman pull`](./docs/podman-pull.1.md)        |
    60  | `docker push`    | [`podman push`](./docs/podman-push.1.md)        |
    61  | `docker port`    | [`podman port`](./docs/podman-port.1.md)        |
    62  | `docker restart` | [`podman restart`](./docs/podman-restart.1.md)  |
    63  | `docker rm`      | [`podman rm`](./docs/podman-rm.1.md)            |
    64  | `docker rmi`     | [`podman rmi`](./docs/podman-rmi.1.md)          |
    65  | `docker run`     | [`podman run`](./docs/podman-run.1.md)          |
    66  | `docker save`    | [`podman save`](./docs/podman-save.1.md)        |
    67  | `docker search`  | [`podman search`](./docs/podman-search.1.md)    |
    68  | `docker start`   | [`podman start`](./docs/podman-start.1.md)      |
    69  | `docker stop`    | [`podman stop`](./docs/podman-stop.1.md)        |
    70  | `docker tag`     | [`podman tag`](./docs/podman-tag.1.md)          |
    71  | `docker top`     | [`podman top`](./docs/podman-top.1.md)          |
    72  | `docker unpause` | [`podman unpause`](./docs/podman-unpause.1.md)  |
    73  | `docker version` | [`podman version`](./docs/podman-version.1.md)  |
    74  | `docker volume`  | [`podman volume`](./docs/podman-volume.1.md)			|
    75  | `docker volume create` | [`podman volume create`](./docs/podman-volume-create.1.md)  |
    76  | `docker volume inspect`| [`podman volume inspect`](./docs/podman-volume-inspect.1.md)|
    77  | `docker volume ls`     | [`podman volume ls`](./docs/podman-volume-ls.1.md)          |
    78  | `docker volume prune`  | [`podman volume prune`](./docs/podman-volume-prune.1.md)    |
    79  | `docker volume rm`     | [`podman volume rm`](./docs/podman-volume-rm.1.md)          |
    80  | `docker system`        | [`podman system`](./docs/podman-system.1.md)                |
    81  | `docker system df`     | [`podman system df`](./docs/podman-system-df.1.md)          |
    82  | `docker system prune`  | [`podman system prune`](./docs/podman-system-prune.1.md)    |
    83  | `docker system info`   | [`podman system info`](./docs/podman-system-info.1.md)      |
    84  | `docker wait`          | [`podman wait`](./docs/podman-wait.1.md)		       |
    85  
    86  **** Use mount to take advantage of the entire linux tool chain rather then just cp.  Read [`here`](./docs/podman-cp.1.md) for more information.
    87  
    88  ## Missing commands in podman
    89  
    90  Those Docker commands currently do not have equivalents in `podman`:
    91  
    92  | Missing command | Description|
    93  | :--- | :--- |
    94  | `docker container update`  | podman does not support altering running containers. We recommend recreating containers with the correct arguments.|
    95  | `docker container rename`   | podman does not support `container rename` - or the `rename` shorthand. We recommend using `podman rm` and  `podman create` to create a container with a specific name.|
    96  | `docker network`  ||
    97  | `docker node`     ||
    98  | `docker plugin`   | podman does not support plugins.  We recommend you use alternative OCI Runtimes or OCI Runtime Hooks to alter behavior of podman.|
    99  | `docker secret`   ||
   100  | `docker service`  ||
   101  | `docker stack`    ||
   102  | `docker swarm`    | podman does not support swarm.  We support Kubernetes for orchestration using [CRI-O](https://github.com/cri-o/cri-o).|
   103  | `docker volume`   | podman currently supports file volumes.  Future enhancement planned to support Docker Volumes Plugins
   104  
   105  ## Missing commands in Docker
   106  
   107  The following podman commands do not have a Docker equivalent:
   108  
   109  * [`podman generate`](./docs/podman-generate.1.md)
   110  * [`podman generate kube`](./docs/podman-generate-kube.1.md)
   111  * [`podman container checkpoint`](/docs/podman-container-checkpoint.1.md)
   112  * [`podman container cleanup`](/docs/podman-container-cleanup.1.md)
   113  * [`podman container exists`](/docs/podman-container-exists.1.md)
   114  * [`podman container refresh`](/docs/podman-container-refresh.1.md)
   115  * [`podman container runlabel`](/docs/podman-container-runlabel.1.md)
   116  * [`podman container restore`](/docs/podman-container-restore.1.md)
   117  * [`podman healthcheck run`](/docs/podman-healthcheck-run.1.md)
   118  * [`podman image exists`](./docs/podman-image-exists.1.md)
   119  * [`podman image sign`](./docs/podman-image-sign.1.md)
   120  * [`podman image trust`](./docs/podman-image-trust.1.md)
   121  * [`podman mount`](./docs/podman-mount.1.md)
   122  * [`podman play`](./docs/podman-play.1.md)
   123  * [`podman play kube`](./docs/podman-play-kube.1.md)
   124  * [`podman pod`](./docs/podman-pod.1.md)
   125  * [`podman pod create`](./docs/podman-pod-create.1.md)
   126  * [`podman pod exists`](./docs/podman-pod-exists.1.md)
   127  * [`podman pod inspect`](./docs/podman-pod-inspect.1.md)
   128  * [`podman pod kill`](./docs/podman-pod-kill.1.md)
   129  * [`podman pod pause`](./docs/podman-pod-pause.1.md)
   130  * [`podman pod ps`](./docs/podman-pod-ps.1.md)
   131  * [`podman pod restart`](./docs/podman-pod-restart.1.md)
   132  * [`podman pod rm`](./docs/podman-pod-rm.1.md)
   133  * [`podman pod start`](./docs/podman-pod-start.1.md)
   134  * [`podman pod stop`](./docs/podman-pod-stop.1.md)
   135  * [`podman pod top`](./docs/podman-pod-top.1.md)
   136  * [`podman pod unpause`](./docs/podman-pod-unpause.1.md)
   137  * [`podman varlink`](./docs/podman-varlink.1.md)
   138  * [`podman umount`](./docs/podman-umount.1.md)