Skip to content
This repository has been archived by the owner on Sep 7, 2018. It is now read-only.

Add workdir to dockerfile #135

Merged
merged 1 commit into from
Mar 28, 2018
Merged

Add workdir to dockerfile #135

merged 1 commit into from
Mar 28, 2018

Conversation

philipnrmn
Copy link
Contributor

@philipnrmn philipnrmn commented Feb 23, 2018

When running grafana/grafana under the Mesos containerizer, the /run.sh entrypoint fails with the message error getting work directory: failed to stat '.': Permission denied

This is caused by a call to os.Getwd. Absent an explicitly set workdir, the Mesos containerizer will set the working directory to a chrooted sandbox directory which root does not have permissions to stat.

Adding a workdir of / ensures that the image behaves the same under the Mesos containerizer as in the Docker runtime.

@xlson
Copy link
Contributor

xlson commented Mar 28, 2018

Thanks for contributing and for a well written PR.

@xlson xlson merged commit 3d11292 into grafana:master Mar 28, 2018
fg2it added a commit to fg2it/grafana-on-raspberry that referenced this pull request Mar 28, 2018
3d112928e32512aa147f98fcb3b39a968ac55046 for grafana/grafana-docker#135
ff3a974203616b20c35101c6cf803c2f9c84fe6d for grafana/grafana-docker#142
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants