-
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
Strange behavior with fig/seems to work fine with docker #328
Comments
Extra info running the binary locally (on the host without any docker/fig) it also works as expected with logging messages showing up on |
maybe the issue is that /dev/log is not a file per se, but a unix domain socket. Although unix sockets are exposed on the filesystem so that is why i can mount them in docker... |
If it happens with Fig and not plain Docker, it's probably a Fig bug. Could On Mon, Jul 21, 2014 at 10:05 AM, Paulo Lopes notifications@github.com
|
this is a borked container:
This one worked:
Now fig only works if i rm the before run, in this case it always works... |
Interesting. That makes me wonder if it's to do with When a container is "recreated", we do a slightly complex chain of starting a new container that has It's possible that this messes with unix sockets somehow. Will have to experiment to see if it can be replicated with plain Docker and |
could you tell what is the docker command i should try for the volumes-from? Since i don't have a data container, i am not sure how to do this... |
FWIW, I'm seeing the same thing (error below, same underlying message) on a Mac via boot2docker. Like @pmlopes observes, the problem seems intermittent; it doesn't always happen. Although once it has happened, it keeps happening. I've found that issuing Note: I'm not using
|
@mozz100 Are you using any volumes at all? It would be good to get a minimal failing fig.yml. |
Yes, I'm using volumes. If you're looking for a minimal failing fig.yml, @pmlopes has the best one. Ours uses As I say, our fig.yml is way more complicated than the simple example above, and apparently exhibits the same failure. |
I can confirm that this is repeatable (I work with @mozz100 but on a different machine at a different location). It definitely seems to be an issue with 'recreating' and happens every time - if I 'fig rm' any containers that throw the error, it starts up OK. |
OK, I've produced a minimal failing case using plain docker. If I mount something innocuous like
#!/bin/bash
set -ex
if [ ! -n "$1" ]; then
echo "Usage: $0 MOUNT_PATH"
exit 1
fi
mount_path=$1
last_id=$(docker run -d -v $mount_path:$mount_path busybox true)
docker wait $last_id
while true; do
new_id=$(docker run -d --volumes-from $last_id busybox true)
docker wait $new_id
docker rm $last_id
last_id=$new_id
done |
(Updated script so it doesn't delete all your containers) |
I just upgraded to Previously I was on docker 1.0.0, and I was not having this problem. I tried the test suite with docker 1.0.1 and docker 1.1.0, it fails with both of those as well. Reverting to docker 1.0.0 is a workaround for now (assuming you don't need anything from newer versions).
|
I cannot start cadvisor like
But works well if runned with docker:
|
Same issue here with fig 0.5.2 after upgrading to docker 1.2
Recreating agendaimport_wordpress_1...
Cannot start container 6acb6464f1fd0c6011cb00a23896e0aa8b7b7f8e773a1b4f2eeb820e12c28552: stat /var/lib/docker/aufs/mnt/d9fa1973f4cdc060683863549924e47e0a0d7e7c2fc51478eb2ca97b4aa5df9c/app/src/wp-content/plugins/agenda-import: no such file or directory |
Having the same problem here |
I'm also seeing this, and have replicated it using docker directly (after I migrated my config over to crane and realised I was seeing it there too :) ). It doesn't seem to matter which file I use. Example:
Then:
Approx 50% of the time I see the file I've tried to mount, and the other times I see the regular default nginx config. I'm on Ubuntu 14.04 x64 with: Client version: 1.2.0 |
I've tried this against the latest dev version of docker built from source and this issue seems to have gone away. So either build from source (info here, https://docs.docker.com/contributing/devenvironment/), or wait for 1.3 to land and I think all will be well :) |
Docker 1.3 has now been released, which includes the fix for this, so no need to build from source. |
Great! Thanks everyone for your help with this. |
Not sure it is related but I seem to have the issue (Debian, docker 1.8.1, docker-compose 1.4.0).
Switching to
$ cat docker-compose.yml
web:
build: .
volumes:
- .:/app/
|
These are not equivalent. The web:
image: python:2.7.8
volumes:
- /absolute/path/to/my/app/:/app/
command: cat /app/requirements.txt |
This works web:
image: python:2.7.8
volumes:
- .:/app/
command: cat /app/requirements.txt This does not
|
How can I access host files from the |
https://docs.docker.com/reference/builder/#add
|
Actually I need to modify certain host files. |
No, you need volumes for that, but volumes are not available during build. |
Hi,
I've a simple container where i want to check some logging functionality, here is my Docker file:
My fig.yml is:
and for the sake of it the syslog_tester source code is:
Now i build the container as usual:
and if i run it from docker:
always works, however if i do:
about 50% of the time i get:
my fig version is 0.5.0 and docker 1.1.1 on ubuntu 14.04 64bit
The text was updated successfully, but these errors were encountered: