-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
docker-compose v1 fails to bring up any compose file with podman v5.0 #306398
Comments
I am seeing something similar for GitLab runner. Reverting podman to <5 works around the problem.
|
Reported upstream: containers/podman#22561 /~https://github.com/NixOS/nixpkgs/blob/23f69f50f72ae19d7bbc7271abe30d8bc859207f/pkgs/applications/virtualization/podman/hardcode-paths.patch may be the cause of this bug. |
How to reproduce this problem? If I try to use [~/nixpkgs]$ nix-shell -I nixpkgs=. -p podman -p docker-compose_1 --pure
[nix-shell:~/nixpkgs]$ docker-compose up
ERROR: Top level object in './docker-compose.yaml' needs to be an object not '<class 'NoneType'>'.
[nix-shell:~/nixpkgs]$ echo "version: '3.4'" > docker-compose.yaml
[nix-shell:~/nixpkgs]$ docker-compose up
Traceback (most recent call last):
File "/nix/store/ryfm1jy98zr3k7a6ym7acc4nck7bia7v-docker-compose-1.29.2/bin/.docker-compose-wrapped", line 9, in <module>
sys.exit(main())
^^^^^^
File "/nix/store/ryfm1jy98zr3k7a6ym7acc4nck7bia7v-docker-compose-1.29.2/lib/python3.11/site-packages/compose/cli/main.py", line 81, in main
command_func()
File "/nix/store/ryfm1jy98zr3k7a6ym7acc4nck7bia7v-docker-compose-1.29.2/lib/python3.11/site-packages/compose/cli/main.py", line 200, in perform_command
project = project_from_options('.', options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/ryfm1jy98zr3k7a6ym7acc4nck7bia7v-docker-compose-1.29.2/lib/python3.11/site-packages/compose/cli/command.py", line 60, in project_from_options
return get_project(
^^^^^^^^^^^^
File "/nix/store/ryfm1jy98zr3k7a6ym7acc4nck7bia7v-docker-compose-1.29.2/lib/python3.11/site-packages/compose/cli/command.py", line 152, in get_project
client = get_client(
^^^^^^^^^^^
File "/nix/store/ryfm1jy98zr3k7a6ym7acc4nck7bia7v-docker-compose-1.29.2/lib/python3.11/site-packages/compose/cli/docker_client.py", line 41, in get_client
client = docker_client(
^^^^^^^^^^^^^^
File "/nix/store/ryfm1jy98zr3k7a6ym7acc4nck7bia7v-docker-compose-1.29.2/lib/python3.11/site-packages/compose/cli/docker_client.py", line 124, in docker_client
kwargs = kwargs_from_env(environment=environment, ssl_version=tls_version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: kwargs_from_env() got an unexpected keyword argument 'ssl_version'
[nix-shell:~/nixpkgs]$ |
Describe the bug
docekr-compose up
v1 fails withwith even the trivial
docker-compose.yaml
when using podman v5.0 as the OCI container backend.
Steps To Reproduce
Steps to reproduce the behavior:
docker-compose up
with a validdocker-compose.yaml
usingdocker-compose_1
Expected behavior
docker-compose
should bring up services specified in the compose file.Additional context
arion
still usesdocker-compose_1
under the hood, so affects deployments using it.hercules-ci/arion#237
Notify maintainers
@Frostman
@NixOS/podman
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: