-
Notifications
You must be signed in to change notification settings - Fork 557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker-compose.yml issues on Linux #783
Comments
Related info here: docker/compose#5003 |
Another workaround is to set the $PWD variable to the absolute path of your "simplenote-electron" directory with on the command line...eg:
|
Closing as this issue doesn't necessarily need action, more an FYI for others. |
Since you left this off as an FYI, hopefully this helps too cause I came across this thread after running into something similar (completely unrelated to this project).
So instead of sudo -E docker-compose up install |
Steps to reproduce
sudo docker up install
, see below for why sudo...WARNING: The PWD variable is not set. Defaulting to a blank string.
and thenERROR: for simplenoteelectron_install_1 Cannot create container for service install: create .: volume name is too short, names should be at least two alphanumeric characters
What I expected
sudo docker-compose up install
andsudo docker-compose up dev
to work.What happened instead
On Linux, it's not uncommon for docker to be setup such that
docker
commands requiresudo
. However, the$PWD
in thevolumes:
sections of the docker-compose.yml don't get set properly withsudo
.One workaround is to not run
docker
commands withsudo
, ref: https://docs.docker.com/install/linux/linux-postinstall/ BUT it would be ideal if the docker-compose.yml worked with thesudo
.OS version
markd@xps:~/dev/simplenote-electron$ cat /proc/version
Linux version 4.9.0-6-amd64 (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07)
Screenshot / Video
The text was updated successfully, but these errors were encountered: