podman-pod-create(1) General Commands Manual podman-pod-create(1) (NAME) podman-pod-create - (SYNOPSIS) podman pod create [] [] (DESCRIPTION) podman pod create . . (ID) . (OPTIONS) --add-host=hostname[;hostname[;...]]:ip IP ( host=ip host:ip). /etc/hosts. hostname=ip hostname:ip . --add-host . --blkio-weight=weight / ( ) 10 1000 0 ( 0) --blkio-weight-device=device:weight / ( ) --cgroup-parent=path (cgroup) --cpu-shares, -c=shares ( ) . . 1024 --cpu-shares 2 . . . . cpu-share 1024 cpu- share 512 . %100 %50 . cpu-share 1024 %33 . %16.5 %16.5 %33 . . %100 %100 . . {C0} -c=512 {C1} -c=1024 : PID container CPU CPU share 100 {C0} 0 100% of CPU0 101 {C1} 1 100% of CPU1 102 {C1} 2 100% of CPU2 --cpus=amount --cpuset-cpus=number (0-3, 0,1) --cpuset-mems=nodes (0-3, 0,1) --device=host-device[:container-device][:permissions] --device-read-bps=path:rate ( ) --device-write-bps=path:rate ( ) --dns=ipaddr DNS --dns-option=option DNS --dns-search=domain DNS --exit-policy=continue | stop (continue stop). --gidmap=container_gid:from_gid[:amount] (GID) (rootless). --gpus=ENTRY (GPU) ('all' GPU) --help, -h -h, --hostname="" --hostname=name (hostname) . --hosts-file=path | none | image /etc/hosts . --infra (infra container) (: true). --infra-command=command . --infra-conmon-pidfile=file (PID) conmon . --infra-image=image . --infra-name=name . --ip=IPv4 IPv4 ( 172.30.100.104) --ip6=IPv6 IPv6 ( 2001:db8::33) --label, -l=key=value label ( label=value) . . label = value label . LABEL io.containers.capabilities=CAP1,CAP2,CAP3 Containerfile (capabilities) . Podman . . . --label-file=file --mac-address=address MAC ( 92:d0:c6:0a:29:33) -m, --memory=0 --memory, -m=number[unit] (: [] b k m g ) . swap -m (RAM) . 0 ( -m) . ( ). --memory-swap=number[unit] (swap) swap '-1' swap --name, -n=name --network=mode, --net --network-alias=alias --no-hostname /etc/hostname RUN . Podman /etc/hostname . --no- hostname /etc/hostname ( ) . --no-hosts /etc/hosts RUN . Podman /etc/hosts IP . --no-hosts /etc/hosts . --add-host . --pid=pid PID --pod-id-file=path . --publish, -p=[[hostIP:][hostPort]:]containerPort[/protocol] . --replace . --restart=policy --security-opt=option --share=namespace ( ipc net pid user uts). --share-parent . --shm-size=number[unit] /dev/shm --shm-size-systemd=number[unit] /dev/shm systemd. --subgidname=name /etc/subgid . --subuidname=name /etc/subuid . --sysctl=name=value sysctl --uidmap=container_uid:from_uid[:amount] (UID) . --userns=mode --uts=mode UTS -v, --volume= bind mount --volume, -v=[[SOURCE-VOLUME|HOST-DIR:]CONTAINER-DIR[:OPTIONS]] (bind mount). -v /HOST-DIR:/CONTAINER-DIR Podman /HOST-DIR /CONTAINER-DIR Podman . OPTIONS : o [rw|ro] o [U] o [z|Z|O] o [[r]shared|[r]slave|[r]private|[r]unbindable] [1] <#Footnote1> CONTAINER-DIR /src/docs . HOST- DIR . Podman HOST-DIR bind-mount . /foo Podman /foo bind-mount . -v . (Write Protected Volume Mounts) :ro :rw - . - . . (Chowning Volume Mounts) Podman . (user namespace) UID GID UID GID . :U Podman UID GID UID GID . (Labeling Volume Mounts) SELinux . . Podman . :z :Z . Podman . z Podman . Podman . / . Z Podman . . (Overlay Volume Mounts) :O Podman Overlay . RUN . Overlay lower upper . RUN tmpfs. RUN RUN . overlay (package cache) . : o O Z z . . SELinux . SELinux . o overlay . . bind-mount private . . . shared . slave . :[r]shared :[r]slave [r]private [r]unbindable . bind-mount . ( ) . shared shared . slave shared slave . [1] <#Footnote1> df findmnt -o TARGET,PROPAGATION findmnt mount /proc/self/mountinfo . optional fields . shared:X shared master:X slave private . [1] <#Footnote1> mount . bind-mount /foo mount --bind /foo /foo mount --make-private --make-shared /foo . /foo shared . . / /foo mount --make-shared / / shared . : . (Idmapped mount) idmap . idmap . idmap : idmap=uids=0-1-10#10-11-10;gids=0-100-10. . . # . --volumes-from=CONTAINER[:OPTIONS] () . . options : o rw|ro o z . CONTAINER . --volumes-from . . Podman (- ) . ro rw . SELinux . . Podman . z . Podman . z Podman . Podman . . . (EXAMPLES) : $ podman pod create --name test : $ podman pod create mypod : $ podman pod create --infra=false : $ podman pod create --infra-command /top toppod : $ podman pod create --publish 8443:443 : $ podman pod create --network pasta : $ podman pod create --network net1:ip=10.89.1.5 --network net2:ip=10.89.10.10 : $ podman pod create --cpus=2 --memory=512m mypod : $ podman pod create --volume /host/path:/container/path:Z mypod : $ podman pod create --volume /data:/data:Z --volume /config:/etc/config:ro --cpus=1.5 --memory=1g --cpu-shares=512 mypod : $ podman pod create --device /dev/sda:/dev/sda:rw --cpus=4 --memory=2g --blkio-weight=500 mypod : $ podman pod create --cpuset-cpus=0,2 --volumes-from=source-container --memory=1g mypod : $ podman pod create --cpus=2 --memory=1g --volume /data:/data:Z mypod $ podman create --pod mypod nginx $ podman create --pod mypod redis (SEE ALSO) podman(1), podman-pod(1), podman-kube-play(1), containers.conf(1), cgroups(7) (Troubleshooting) podman-troubleshooting(7) . (HISTORY) Peter Hunt . (FOOTNOTES) : Podman . (mount propagation) master slave . . Podman . podman-pod-create(1)