Comments (6)
Hi, I guess the issue is caused by the relative path .:/usr/src/app
you could use workarounds discussed in #6 #49 and #50
from docker-compose-ui.
I tried setting ${PWD}
instead of .
, but this does not work. I'm getting this exception:
ERROR: for api Cannot create container for service api: create .: "." includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed
Traceback (most recent call last):
File "/env/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/env/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/app/scripts/requires_auth.py", line 54, in decorated
return func(*args, **kwargs)
File "/app/main.py", line 197, in up_
do_build=do_build)
File "/env/lib/python2.7/site-packages/compose/project.py", line 404, in up
'Encountered errors while bringing up the project.'
ProjectError
The compose file looks like this:
version: "2"
services:
api:
build: .
command: "npm -s start"
environment:
- NODE_ENV=development
volumes:
- ${PWD}:/usr/src/app
from docker-compose-ui.
you'll have to override the PWD
env, e.g.
docker run --name docker-compose-ui -p 5000:5000 -e PWD=/projects/ -v /projects/:/opt/docker-compose-projects/ -v /var/run/docker.sock:/var/run/docker.sock francescou/docker-compose-ui
from docker-compose-ui.
Hi @enko did you solve the issue?
from docker-compose-ui.
I am closing the issue for now, feel free to reopen if necessary
from docker-compose-ui.
Sorry to answer so late. I create an env file via CI which sets PWD which does everything right.
from docker-compose-ui.
Related Issues (20)
- How to access private Git repo? HOT 2
- Multiple Docker Engines HOT 1
- Question - Is this project right for me? HOT 2
- Problem with same name of parent directory HOT 1
- Add support for .yaml HOT 3
- Doesn't work on Red Hat Enterprise Linux Server 7.4 HOT 2
- Services: no containers found HOT 3
- [Enhancement] Edit docker-compose file for existing services HOT 7
- State of project not recognised if a folder has a hypenated name
- Very useful tool HOT 1
- docker-compose 3.7 HOT 2
- Bring specific container down that was started with scale
- Display service version
- Nested docker-compose.yml
- permissions security vulnerability HOT 1
- Project website URL on GitHub project doesn't work HOT 4
- HTTPS support?
- Support for armv7l
- Is the docker-compose-ui project dead? HOT 2
- python 3.9 support
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-compose-ui.