Skip to content
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

Podman 3.0.0 fails to run containers with VOLUME's defined (e.g. postgres or mysql) #9393

Closed
edigaryev opened this issue Feb 15, 2021 · 3 comments
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@edigaryev
Copy link
Contributor

# podman run -it --rm postgres:latest
Error: error streaming container content for copy up into volume d2045626bfc94fe77f311106ffe9f3bb399e6bb7288e701c14bbcfeef68e7851: copier: get: globs [/postgresql/data] matched nothing (0 filtered out): no such file or directory
# podman run -it --rm mysql:latest
Error: error streaming container content for copy up into volume 34ff3aae2f29ef912f3945a15009e2ef2273302c247ea8b05c57175f15b58d07: copier: get: globs [/mysql] matched nothing (0 filtered out): no such file or directory
# podman version
Version:      3.0.0
API Version:  3.0.0
Go Version:   go1.14
Built:        Thu Jan  1 00:00:00 1970
OS/Arch:      linux/amd64
@klDen
Copy link

klDen commented Feb 15, 2021

I am getting the same error as above but for gradle.

$ podman run -it --rm docker.io/library/gradle
Error: error streaming container content for copy up into volume e950a358f35e2b93c64abd4bd0613a27e56f944c659a6fe3697c00b3c94689b3: copier: get: globs [/gradle/.gradle] matched nothing (0 filtered out): no such file or directory

@mheon
Copy link
Member

mheon commented Feb 15, 2021

#9383 will fix

edigaryev added a commit to cirruslabs/cirrus-cli that referenced this issue Feb 16, 2021
edigaryev added a commit to cirruslabs/cirrus-cli that referenced this issue Feb 16, 2021
* Work around containers/podman#9390

* Work around containers/podman#9393

* Stream launched container's logs to the CLI's logger

* Work around containers/podman#9351

* Ignore bodyclose linter false-positive

* .cirrus.yml: run "go test" on Windows verbosely

* Use sub-context for the ContainerLogs() call

To avoid potential hangs in stdcopy.StdCopy().

* ContainerLogs: use buffered channels

To avoid a case when stdcopy.StdCopy() waits for the io.Pipe()
to unlock, while the connection from which it reads the logs
gets closed.

This presumably results in the tail part of the logs getting lost.

* TestContainerLogs: skip last line check for Podman
@mheon
Copy link
Member

mheon commented Feb 18, 2021

Closing, fixed upstream. Preparing 3.0.1 with the fix now.

@mheon mheon closed this as completed Feb 18, 2021
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

3 participants