Open nickiemc opened 1 week ago
Are you sure this has to do anything with all
?
opening container config: open : invalid argument
is a internal error that has nothing to do with the endpoint and or compose.
what happens if you run podman ps -a
as root given in your example you connect to the root socket
Hi @Luap99, the issue seems to be with all=1
. As I noted above, if I run with just all
, the command completes successfully. I see the same behavior running as both root and devops_user.
Running podman ps -a
as both root and devops_user successfully outputs a list of the running containers.
Hi @Luap99, the issue seems to be with all=1. As I noted above, if I run with just all, the command completes successfully. I see the same behavior running as both root and devops_user.
It is not related to how all is parsed at all. If you do not set all to true, wich you do by just using all
instead of of all=1
you only list running containers.
The error you are getting is pretty internal and has nothing to do with how this is parsed or not it just means that it is related to a container that is not running. And quite frankly looking at the error message getting an EINVAL from the open syscall when passing an empty path looks wrong. Podman expects ENOENT here which is what I would expect.
Also note that we only support the latest version upstream. If you problems with the version in RHEL you should go through the Red Hat support channels.
Issue Description
Description
When attempting to run docker-compose on a RHEL8 server using Podman, it seems that the
all=1
parameter is being marked as invalid.Here are my debugging steps:
Executing
docker-compose up web
results inError response from daemon: opening container config: open : invalid argument
.Looking at the output of
journalctl -u podman
after running the above command, I can see the underlying command that is being executed:If I attempt to run this manually using the command below, I get a 500 error with the same error message::
[1] 1561271 [devops_user@devops_server devops-debug-build]$ * Trying /var/run/docker.sock...
< {"cause":"invalid argument","message":"opening container config: open : invalid argument","response":500}
curl -iv --unix-socket /var/run/docker.sock http://v1.41/containers/json?all&filters=%7B%22label%22%3A%7B%22com.docker.compose.config-hash%22%3Atrue%2C%22com.docker.compose.project%3Dbsc_bsc-658-debug-build%22%3Atrue%7D%7D [1] 1562521 [nhlbi_epmapdevops@hllda-phpdocker BSC_BSC-658-debug-build]$ * Trying /var/run/docker.sock...
Steps to reproduce the issue
Environment Details
v8.10
v4.9.4-rhel
v2.27.0
docker-compose.yml
Steps to Reproduce
Execute the following command:
Describe the results you received
The command returns a
500 Internal Server Erro
r with the messageopening container config: open : invalid argument
.Running
docker-compose up web
results in an error:Error response from daemon: opening container config: open : invalid argument
.Describe the results you expected
The command returns a
200 OK
status.Running
docker-compose up web
successfully starts theweb
container.podman info output
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
No
Additional environment details
N/A
Additional information
N/A