Comments (5)
When installing, you specify a DC_DIR
variable, which is stored in your .bashrc
The DC_DIR
contains subdirectories (stacks) with the different docker-compose.yml
files
For instance:
<DC_DIR>/1-backends/docker-compose.yml
<DC_DIR>2-system/docker-compose.yml
Makes sense?
from dc.
If alright with you, I'll close this issue.
I've created a new issue (#44) for this.
from dc.
So, for docker-compose
(or docker-compose
) you would have to go to the directory that the docker-compose.yml file is in and run the commands from there.
With dc
, you can run commands from wherever you are on the prompt.
So, for instance, you could run dc restart nginx
and dc
would restart the nginx container like that.
Does that help?
from dc.
Ah... Yes, that sounds awesome!
How does it know where the docker-compose.yml
file is located?
from dc.
Ah... Yes, thank you for explaining.
from dc.
Related Issues (20)
- Log following
- Add `docker compose` functionality
- Sudo-less user install
- Consistency in using `echo` or `printf`
- "dc help" prints "Invalid command help, showing help" showing command "help Print help"
- "dc list" gives "--env-file: command not found" error
- Update documentation with examples
- Some sort of implementation of cleanup/pruning HOT 3
- `list` does not work as expected with `docker compose`
- Remove `docker-compose` compatibility
- `dc update` is acting wonky HOT 3
- When exiting (Ctrl-C) "dc logs": dc: line 505: kill: `': not a pid or valid job spec
- Consider using "--all" option in "dc prune system"
- Compose file filename
- Feature request/discussion: dc command to get a shell inside a container HOT 1
- [BUG] - Updating gives error
- [IMPROVE] `dc ips` should support multiple ips
- Layout issue in dc help
- "dc shell" glitches when using Ctrl-C in bash and then exiting 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 dc.