Giter Site home page Giter Site logo

Comments (5)

muayyad-alsadi avatar muayyad-alsadi commented on July 17, 2024 1

got it, thank you, I'll fix that soon

from podman-compose.

muayyad-alsadi avatar muayyad-alsadi commented on July 17, 2024

But if I try to restart the container via podman-compose up an error message occurs that the container is already existent.

I guess that error is just a warning
It's supposed to work.

I actually don't do any check
I create it, then attach to it.
if it's already exist, it should just work.

from podman-compose.

supermar1010 avatar supermar1010 commented on July 17, 2024

No its not restarted at least in my tests. If I p-c up and then ctrl+c and p-c up again, it still has the same log messages as before, so you it seems like you attach to the old container, but you are not actually starting it again, because it is still running? I'm not entirely sure but thats what it seems to do.

from podman-compose.

muayyad-alsadi avatar muayyad-alsadi commented on July 17, 2024

it seems that every thing is working fine, for example

while standing on devel branch

$ cd tests/simple
$ ../../podman_compose.py up
....
CTRL+C
$ podman stop -t=1 simple_web_1
$ ../../podman_compose.py up

as you can see it called

podman start -a simple_web_1

the code already does what you asked for
https://github.com/containers/podman-compose/blob/devel/podman_compose.py#L999

        thread = Thread(target=compose.podman.run, args=[['start', '-a', cnt['name']]], daemon=True)

please make sure you are using latest devel branch

pip3 install https://github.com/containers/podman-compose/archive/devel.tar.gz

from podman-compose.

supermar1010 avatar supermar1010 commented on July 17, 2024

Ok now it works, thank you :)

from podman-compose.

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.