Giter Club home page Giter Club logo

Comments (4)

JayKayy avatar JayKayy commented on June 21, 2024

I was trying to debug this and could not reproduce the issue. However, I'm wondering if it has to do with the specific config file that you modified in the first step. Looking at the docs in man containers.conf:

Container engines read the /usr/share/containers/containers.conf, /etc/containers/containers.conf, and /etc/containers/containers.conf.d/.conf files if they exist.
When running in rootless mode, they also read $HOME/.config/containers/containers.conf and
$HOME/.config/containers/containers.conf.d/
.conf files.

It mentions that the file you modified in your first step (~/.config/containers/containers.conf) only applies to rootless mode containers. I'm wondering if the podman compose is for some reason not running the container as rootless.

If you take that settings provided and put the config changes in one of the global config files, do you still see this issue?

from podman.

stacyharper avatar stacyharper commented on June 21, 2024

Ah! I think I just had to restart the podman socket daemon... Now after a reboot, I don't reproduce anymore

from podman.

stacyharper avatar stacyharper commented on June 21, 2024

Maybe it is unrelated to this ticket, but I still see a difference in the behavior between podman compose and podman run contexts.

With podman run: there is no <c-p><c-q> shortcut at all

With podman compose run: there is still a <c-p><c-q>, additionnaly to <c-x>x

The following paste show first a <c-p><c-q>, then the <c-x>x

[stacy@yellow-orcess ~/tmp]$ podman compose run --rm foo sh
>>>> Executing external compose provider "/usr/bin/docker-compose". Please refer to the documentation for details. <<<<

/ # ERRO[0002] error waiting for container: context canceled
[stacy@yellow-orcess ~/tmp]$ podman compose run --rm foo sh
>>>> Executing external compose provider "/usr/bin/docker-compose". Please refer to the documentation for details. <<<<

/ # Error: detached from container
                                  pwd

^C[stacy@yellow-orcess ~/tmp]$
``

from podman.

rhatdan avatar rhatdan commented on June 21, 2024

The containers.conf files are onlly read at podman start, in one case you have a podman running locally which reads the containers.conf, In the podman compose case you are talking to the podman service which could have been running before the containers.conf was set?

You can eliminate the podman compose part and just do

podman --remote run ...

And see if the detach keys work properly, after service restart.

from podman.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.