Comments (5)
got it, thank you, I'll fix that soon
from podman-compose.
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.
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.
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.
Ok now it works, thank you :)
from podman-compose.
Related Issues (20)
- Support generating quadlet configuration
- Support for turning off `--interactive` flag for `podman-compose exec` command HOT 1
- Add TOML support for Podman-Compose? HOT 3
- RuntimeError: volume not defined in top level
- DNS not working anymore on Fedora 40/Podman 5.0 HOT 2
- Multi-line environment files are not correctly processed HOT 1
- Get command without docker-compose labels? HOT 4
- links: with dns name don't seem to work
- FR: Enabling GPU access to service containers
- Podman Compose 1.1.0 fails non-deterministically to start a system with multiple dependencies HOT 1
- Registering a systemd unit should not create pods or containers
- How to install podman-compose in an air-gapped network? HOT 6
- bump podman-compose version to 1.1.1 or 1.2.0 HOT 1
- Broken support for Containerfile
- Building or Running a Service Fails Without Explicit Profile
- Environment variables defined in compose file are included in image build
- Upgrade `podman-compose` to the latest version in pip and Homebrew HOT 1
- Unable to start containers with userns on v1.1.0 HOT 2
- podman multiple erros starting container HOT 1
- podman-compose 1.1.0 no longer loads env file in the same directory with compose.yaml when using `-f` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from podman-compose.