cptactionhank / docker-atlassian-jira

Atlassian JIRA Core wrapped in a Docker image
https://cptactionhank.github.io/docker-atlassian-jira
MIT License
623 stars 247 forks source link

chdir to cwd (\"/var/atlassian/jira\") set in config.json failed: permission denied #90

Open zzvara opened 5 years ago

zzvara commented 5 years ago

Tried to update 7.6.0 to 7.13.0 by simply changing the image and reattaching the named volume to /var/atlassian/jira. Encountered the following error:

docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "chdir to cwd (\"/var/atlassian/jira\") set in config.json failed: permission denied": unknown.

Using docker Docker version 18.06.1-ce, build e68fc7a on Linux alpha 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux.

Please advise on how to upgrade from 7.6.0 to 7.13.0. I see the image base has been changed as well.

blop commented 5 years ago

You need to chown to uid=2 gid=2 your volume.

chown -R 2.2 /path/to/volume/of/var/atlassian/jira/