-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Homepage tutorial on OSX raises "can't open file 'app.py': [Errno 2] No such file or directory" #300
Comments
Fig doesn't work with boot2docker, unfortunately. docker-osx is the best solution currently, which the Fig install instructions suggest: http://orchardup.github.io/fig/install.html There are also some workarounds for boot2docker: #26 |
@mingderwang New URL is http://www.fig.sh/install.html. |
Official instructions for fig now recommend to install boot2docker through the OSX Installer. Following the instructions and the tutorial gives the exact same error:
I've tried both with the official Docker for OSX Installer and the Homebrew versions of boot2docker and docker. The result is the same. The versions I tried are: $ boot2docker version
Boot2Docker-cli version: v1.4.1
Git commit: 43241cb
$ docker version
Client version: 1.4.1
Client API version: 1.16
Go version (client): go1.3.3
Git commit (client): 5bc2ff8
OS/Arch (client): darwin/amd64
Server version: 1.4.1
Server API version: 1.16
Go version (server): go1.3.3
Git commit (server): 5bc2ff8
$ fig --version
fig 1.0.1 Are there any workarounds? |
@panta Looks like your folders aren't mounting inside the VM. Test it with:
If the output doesn't list the |
The
But your suggestion gave me a possible insight. My home directory
So I tried
it lists only the leading directory of the project. All the project path components can be listed, except the last:
which gives an empty output. Could be the problem related to my home residing on a different volume? Is there a workaround in this case? |
That's almost certainly the issue. You might be able to fix it by passing a custom share to
|
Hi, I got the same problem when running flask example from docker-compose's tutorial.
That means web container is correctly built and app.py exists inside it. So My environment is: |
@phuna Your container has built correctly, but if your home directory isn't mounting properly inside the VM, it'll overwrite
|
@aanand It returns only
I remove above 2 lines and expect it will use |
@phuna Make sure your old containers are gone first:
|
@aanand Thanks! It works now. |
On my OSX (10.9, Docker 1.1.0, boot2docker 1.1.0) the tutorial that is on Fig homepage (http://orchardup.github.io/fig/) gives a following log resulting in exit code 2 (see end).
I'm not sure what to do, because I don't use python at all and I'm new to Docker..
It looks like the
/code
dir is not created, becausedocker run cdc18ed4ed6f ls /code
results incannot access /code: No such file or directory
.The text was updated successfully, but these errors were encountered: