Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
f30_podman [2019/03/30 15:19] – [Overview] rpjdayf30_podman [2019/03/31 15:55] (current) – [cp] rpjday
Line 18: Line 18:
 Tutorial links: Tutorial links:
  
 +  * [[https://github.com/containers/libpod/blob/master/transfer.md|Podman Usage Transfer]]
   * [[https://www.projectatomic.io/blog/2018/02/reintroduction-podman/|Reintroduction of podman (Feb 2018)]]   * [[https://www.projectatomic.io/blog/2018/02/reintroduction-podman/|Reintroduction of podman (Feb 2018)]]
   * [[https://developers.redhat.com/articles/podman-next-generation-linux-container-tools/|Podman - The next generation of Linux container tools]]   * [[https://developers.redhat.com/articles/podman-next-generation-linux-container-tools/|Podman - The next generation of Linux container tools]]
 +  * [[https://www.projectatomic.io/blog/2018/05/podman-tls/|Podman and insecure registries]]
 +  * [[https://developers.redhat.com/blog/2019/01/29/podman-kubernetes-yaml/|Podman can now ease the transition to Kubernetes and CRI-O]]
 +  * [[https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8-beta/html/building_running_and_managing_containers/container-command-line-reference_building-running-and-managing-containers|podman command-line reference]]
 +  * [[https://developers.redhat.com/blog/2019/02/21/podman-and-buildah-for-docker-users/|Podman and Buildah for Docker users]]
 +
 +Dan Walsh's opensource.com articles:
 +
 +  * [[https://opensource.com/article/18/10/podman-more-secure-way-run-containers|Podman: A more secure way to run containers]]
 +  * [[https://opensource.com/article/18/12/podman-and-user-namespaces|Podman and user namespaces: A marriage made in heaven]]
 +  * [[https://opensource.com/article/19/2/how-does-rootless-podman-work|How does rootless Podman work?]]
  
 There should theoretically be no need for docker-related RPMs for any of this. There should theoretically be no need for docker-related RPMs for any of this.
Line 95: Line 106:
 ==== ASSORTED ==== ==== ASSORTED ====
  
-  * cp+  * cp                     [DONE]
   * generate-kube   * generate-kube
   * generate   * generate
Line 106: Line 117:
   * unmount   * unmount
   * varlink   * varlink
 +  * version                [DONE]
  
  
Line 251: Line 263:
 $ podman images $ podman images
 $ podman images [-a|--all]       [include intermediate images] $ podman images [-a|--all]       [include intermediate images]
 +
 +$ podman image [list|ls]
 </code> </code>
  
-=== ps ===+=== containers ===
  
 <code> <code>
 $ podman ps $ podman ps
 CONTAINER ID  IMAGE  COMMAND  CREATED  STATUS  PORTS  NAMES CONTAINER ID  IMAGE  COMMAND  CREATED  STATUS  PORTS  NAMES
-$ podman ps -a                   [include non-running containers]+$ podman container ps -a                   [include non-running containers]
 </code> </code>
  
Line 267: Line 281:
 $ podman search --limit 3 hello-world  [limit from each registry] $ podman search --limit 3 hello-world  [limit from each registry]
 $ podman search docker.io/hello-world $ podman search docker.io/hello-world
 +</code>
 +
 +===== inspect =====
 +
 +<code>
 +$ docker inspect fedora:28
 +$ docker inspect --latest
 +</code>
 +
 +===== cp =====
 +
 +<code>
 +NAME
 +       podman-cp - Copy files/folders between a container and the
 +       local filesystem
 +
 +SYNOPSIS
 +       podman cp [CONTAINER:]SRC_PATH [CONTAINER:]DEST_PATH
 +</code>
 +
 +Start a Ubuntu container:
 +
 +<code>
 +$ podman run -it --rm ubuntu bash
 +</code>
 +
 +Identify it, and copy the file ''/etc/os-release'' to local ''/tmp'':
 +
 +<code>
 +$ podman ps
 +CONTAINER ID  IMAGE                            COMMAND  CREATED        STATUS            PORTS  NAMES
 +cb29f21de0df  docker.io/library/ubuntu:latest  bash     3 minutes ago  Up 3 minutes ago         pensive_lamport
 +</code>
 +
 +<code>
 +$ podman cp pensive_lamport:etc/os-release /tmp/os
 +$ cat/tmp/os
 +NAME="Ubuntu"
 +VERSION="18.04.2 LTS (Bionic Beaver)"
 +ID=ubuntu
 +ID_LIKE=debian
 +PRETTY_NAME="Ubuntu 18.04.2 LTS"
 +VERSION_ID="18.04"
 +...  etc etc ...
 +</code>
 +
 +Copy from local filesystem to container:
 +
 +<code>
 +$ podman cp /etc/os-release pensive_lamport:tmp
 +</code>
 +
 +===== Removing things =====
 +
 +Remove containers:
 +
 +<code>
 +$ podman rm <ctrID>
 +$ podman rm [-a|--all]
 </code> </code>
  
  • f30_podman.1553959157.txt.gz
  • Last modified: 2019/03/30 15:19
  • by rpjday