-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data not copying up to volumes for containers created but not started #8041
Comments
The reason I only create the container but not run it is that in real use-case, the image serves only as a distribution mechanism for the data to be used as volume and there are no binaries on it to run. The end goal of this exercise is to then copy the data from the volume to real directory on the host, with something like
I also looked at skopeo but it only seems to manipulate the whole images, and the task of exploding the layers would need to be done manually. |
This is one place where I don't know if we can copy Docker. Our You should be able to do a |
Running
So for a container image which has no executable binary to run, that does not seem to do the trick. |
Hm, damn - didn't expect it would do that check before starting the
container.
…On Fri, Oct 16, 2020, 10:27 Jan Pazdziora ***@***.***> wrote:
Running podman init I get
Error: container_linux.go:349: starting container process caused "exec: \"noop\": executable file not found in $PATH": OCI runtime command not found error
So for a container image which has no executable binary to run, that does
not seem to do the trick.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#8041 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3AOCEXATHVIWI7VBRU7X3SLBJ4LANCNFSM4STBWIJA>
.
|
|
Ah, you are right. Running |
A friendly reminder that this issue had no activity for 30 days. |
@adelton Can we close this issue, since you have a work around? |
Yes. Thank you. |
Closing, thanks for the confirmation @adelton |
Unlike with docker, we have to run the container with podman to copy-up the content from the image to the volume, see containers/podman#8041.
Unlike with docker, we have to "run" the container with podman to copy-up the content from the image to the volume, even if the run will fail, see containers/podman#8041.
Unlike with docker, we have to "run" the container with podman to copy-up the content from the image to the volume, even if the run will fail, see containers/podman#8041.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When volume and container with this volume are created by docker, that volume gets populated (copied up from the image) and can then be consumed by another container using
--volumes-from
. It does not seem to work with podman, in spite of #3945 having been resolved via #3961.Steps to reproduce the issue:
podman volume create test-copy-up
podman create --name test-copy -v test-copy-up:/etc/yum.repos.d registry.fedoraproject.org/fedora noop
podman run --rm --volumes-from test-copy docker.io/library/busybox ls -la /etc/yum.repos.d
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
I get the same results both with rootless podman and under
sudo podman
.The expected result is from the same commands, just replaced
podman
withdocker
, under moby-engine-19.03.11-1.ce.git42e35e6.fc32.x86_64.Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
No
Additional environment details (AWS, VirtualBox, physical, etc.):
This is on physical Fedora 32 machine.
The text was updated successfully, but these errors were encountered: