mirror of
https://github.com/containers/podman.git
synced 2025-06-02 19:02:10 +08:00
Merge pull request #3623 from TomSweeneyRedHat/dev/tsweeney/pimagereadme
Change wait to sleep in podmanimage readme
This commit is contained in:
@ -30,7 +30,7 @@ mkdir /var/lib/mycontainer
|
||||
# Run the image detached using the host's network in a container name
|
||||
# podmanctr, turn off label and seccomp confinement in the container
|
||||
# and then do a little shell hackery to keep the container up and running.
|
||||
podman run --detach --name=podmanctr --net=host --security-opt label=disable --security-opt seccomp=unconfined --device /dev/fuse:rw -v /var/lib/mycontainer:/var/lib/containers:Z --privileged stable sh -c 'while true ;do wait; done'
|
||||
podman run --detach --name=podmanctr --net=host --security-opt label=disable --security-opt seccomp=unconfined --device /dev/fuse:rw -v /var/lib/mycontainer:/var/lib/containers:Z --privileged stable sh -c 'while true ;do sleep 100000 ; done'
|
||||
|
||||
podman exec -it podmanctr /bin/sh
|
||||
|
||||
|
Reference in New Issue
Block a user