1podman-image-scp(1) General Commands Manual podman-image-scp(1)
2
3
4
6 podman-image-scp - Securely copy an image from one host to another
7
8
10 podman image scp [options] name[:tag]
11
12
14 podman image scp copies container images between hosts on a network.
15 This command can copy images to the remote host or from the remote host
16 as well as between two remote hosts. Note: :: is used to specify the
17 image name depending on Podman is saving or loading. Images can also be
18 transferred from rootful to rootless storage on the same machine with‐
19 out using sshd. This feature is not supported on the remote client, in‐
20 cluding Mac and Windows (excluding WSL2) machines.
21
22
23 podman image scp [GLOBAL OPTIONS]
24
25
26 podman image scp [OPTIONS] NAME[:TAG] [HOSTNAME::]
27
28
29 podman image scp [OPTIONS] [HOSTNAME::]IMAGENAME
30
31
32 podman image scp [OPTIONS] [HOSTNAME::]IMAGENAME [HOSTNAME::]
33
34
36 --help, -h
37 Print usage statement
38
39
40 --quiet, -q
41 Suppress the output
42
43
45 $ podman image scp alpine
46 Loaded image: docker.io/library/alpine:latest
47
48
49 $ podman image scp alpine Fedora::/home/charliedoern/Documents/alpine
50 Getting image source signatures
51 Copying blob 72e830a4dff5 done
52 Copying config 85f9dc67c7 done
53 Writing manifest to image destination
54 Storing signatures
55 Loaded image: docker.io/library/alpine:latest
56
57
58 $ podman image scp Fedora::alpine RHEL::
59 Loaded image: docker.io/library/alpine:latest
60
61
62 $ podman image scp charliedoern@192.168.68.126:22/run/user/1000/podman/podman.sock::alpine
63 WARN[0000] Unknown connection name given. Please use system connection add to specify the default remote socket location
64 Getting image source signatures
65 Copying blob 9450ef9feb15 [--------------------------------------] 0.0b / 0.0b
66 Copying config 1f97f0559c done
67 Writing manifest to image destination
68 Storing signatures
69 Loaded image: docker.io/library/alpine:latest
70
71
72 $ sudo podman image scp root@localhost::alpine username@localhost::
73 Copying blob e2eb06d8af82 done
74 Copying config 696d33ca15 done
75 Writing manifest to image destination
76 Storing signatures
77 Getting image source signatures
78 Copying blob 5eb901baf107 skipped: already exists
79 Copying config 696d33ca15 done
80 Writing manifest to image destination
81 Storing signatures
82 Loaded image: docker.io/library/alpine:latest
83
84
85 $ sudo podman image scp root@localhost::alpine
86 Copying blob e2eb06d8af82 done
87 Copying config 696d33ca15 done
88 Writing manifest to image destination
89 Storing signatures
90 Getting image source signatures
91 Copying blob 5eb901baf107
92 Copying config 696d33ca15 done
93 Writing manifest to image destination
94 Storing signatures
95 Loaded image: docker.io/library/alpine:latest
96
97
98
100 podman(1), podman-load(1), podman-save(1), podman-remote(1), podman-
101 system-connection-add(1), containers.conf(5), containers-transports(5)
102
103
105 July 2021, Originally written by Charlie Doern cdoern@redhat.com
106 ⟨mailto:cdoern@redhat.com⟩
107
108
109
110 podman-image-scp(1)