Comments (5)
In the meantime:
python autocompose.py $(docker ps -a | awk '(NR>1) {print $1}') > my_containers.yaml
from docker-autocompose.
In the meantime:
python autocompose.py $(docker ps -a | awk '(NR>1) {print $1}') > my_containers.yaml
you can use docker ps -q
in order to get just the ids. Something like
docker ps -q | xargs docker run --rm -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/red5d/docker-autocompose
from docker-autocompose.
This would ideally be the default behavior since the empty compose file generated isn't very useful at all.
from docker-autocompose.
for a single one-liner:
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/red5d/docker-autocompose $(docker ps -aq)
from docker-autocompose.
Using the new flag causes the temporary container itself to be present in the output
from docker-autocompose.
Related Issues (20)
- /var/run/docker.sock - docker compose issue HOT 2
- issue with some entry point
- Container with network within another container HOT 2
- date_or_time syntax error? HOT 1
- Just a little contribution: shell script to execute docker-autocompose and backup yaml HOT 2
- IndexError: list index out of range HOT 1
- Best way to send output to a file? HOT 2
- Suggestion | command switch to extend any volume variables beyond 'external'
- Shared mounts are not exported properly HOT 4
- Missing values HOT 2
- Cant retrive compose file HOT 3
- Boolean value should be true/false ? HOT 1
- autocompose.py does not use the set context?
- compose.yaml seems to have to many lines
- That container is not available HOT 1
- Block of volumes in random order (mountpoints) HOT 2
- permission denied issue! HOT 2
- RuntimeError: invalid GMT offset
- Export all contrainers at once? HOT 1
- Backup with a small problem at restore (Host/Network)
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 docker-autocompose.