-
Notifications
You must be signed in to change notification settings - Fork 495
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
boot2docker (windows vm) has issues when trying to run #5
Comments
@paul42 you are correct in that.. we merged some upgrades this morning that make the timezone configuration unnecessary, I'll let you known when the updated image hits the registry! |
thanks! I love the package you guys put together! I still need to find out/research what exactly the /etc/localtime:ro means, I am assuming it's a way to track timezone / time configs? does the :ro flag in docker mean read only? |
mounting /etc/localtime is just about making sure that the docker container has the same timezone that the docker host has, to make sure that everything is displayed in local time on the grafana dashboard.. this is no longer necessary in the latest grafana release (in fact, it wasn't necessary before, we just found it convenient)... and yes, the |
Any updates on this bug ? Unable to run the current codebase on OSX. Keep hitting this error : |
@thebitmonk please take a look at the
let us know if you have any issues! |
@ivantopo Thanks. I was able to get it up and running. |
@thebitmonk I'm glad you got it working, I'll proceed to close this issue.. feel free to ask anything you might need in our mailing list, regards! |
@ivantopo if let timezone not set for the container, timestamp in the log file is not easy to read |
hello @quxiaojing, can you please share what exactly do you mean by not easy to read? |
@ivantopo for example,my timezone is Asia/Shanghai,then supervisord.log show some line like
when my expectation is
timestamp in the log file is the UTC time, not my localtime |
Now I see what you mean. As far as I could investigate there is no other "official" way to set the container's timezone other than mounting Our initial motivation to suggest mounting Although we wont recommend it anymore, you can still mount |
@ivantopo Thanks for reply , I found the reason why we can mount /etc/localtime, it's because the host which run the docker damon don't have the file /etc/localtime, especially on the boot2docker-vm. so i need to customize my boot2docker-vm to resolve this problem. |
@quxiaojing please share if you find any suitable solution. |
I'm guessing because boot2docker is incredibly lightweight it doesn't have all the volumes?
docker@boot2docker:
$ docker run -d -v /etc/localtime:/etc/localtime:ro -p 80:80 -p 8125:8125/udp -p 8126:8126 --name kamon-grafana-dashboard kamon/grafana_graphite$a4d3e7677c8337f3b56f2c1970e7745adcbcc4334445a976d45c64b00aa7160e
2014/09/05 18:22:31 Error response from daemon: Cannot start container a4d3e7677c8337f3b56f2c1970e7745adcbcc4334445a976d45c64b00aa7160e: setup mount namespace bind mounts mounting /etc/localtime into /mnt/sda1/var/lib/docker/aufs/mnt/a4d3e7677c8337f3b56f2c1970e7745adcbcc4334445a976d45c64b00aa7160e/etc/localtime not a directory
docker@boot2docker:
when I delete the -v flag and the volumes I can run. I'm going to skim the docs and see what that does and find out how to remedy on boot2docker (sorry, I'm linux weak)
The text was updated successfully, but these errors were encountered: