Comments (9)
This usually happens when you volume folders from windows.
Which operating system do you use?
Do you use volumes? Which folders?
You can try to start container under user root!
from jira.
The OS is ubuntu14. I have used volumes . My docker-compose is:
version: '2'
services:
jira:
image: blacklabelops/jira
container_name: jirasoftware
networks:
┊ - jiranet
volumes:
┊ - /data/volumes/jira/jiradata:/var/atlassian/jira
ports:
┊ - '8092:8080'
environment:
┊ - 'JIRA_DATABASE_URL=postgresql://jira@postgresql/jiradb'
┊ - 'JIRA_DB_PASSWORD=jellyfish'
┊ - 'CATALINA_OPTS= -Xms256m -Xmx1g'
┊ - 'JIRA_PROXY_NAME='
┊ - 'JIRA_PROXY_PORT='
┊ - 'JIRA_PROXY_SCHEME='
┊ - 'JIRA_DELAYED_START=10'
links:
┊ - 'postgresql:postgresql'
labels:
┊ com.blacklabelops.description: "Atlassian Jira"
┊ com.blacklabelops.service: "jira"
postgresql:
image: blacklabelops/postgres
hostname: postgresql
networks:
┊ - jiranet
volumes:
┊ - /data/volumes/jira/postgresql:/var/lib/postgresql/data
environment:
┊ - 'POSTGRES_USER=jira'
┊ # CHANGE THE PASSWORD!
┊ - 'POSTGRES_PASSWORD=jellyfish'
┊ - 'POSTGRES_DB=jiradb'
┊ - 'POSTGRES_ENCODING=UNICODE'
┊ - 'POSTGRES_COLLATE=C'
┊ - 'POSTGRES_COLLATE_TYPE=C'
labels:
┊ com.blacklabelops.description: "PostgreSQL Database Server"
┊ com.blacklabelops.service: "postgresql"
#volumes:
#jiradata:
# external: false
# postgresqldata:
# external: false
#
networks:
jiranet:
driver: bridge
And I also try it under user root , bun it does not work. I think that is error in container , the user in container is not root.
from jira.
The problem: User inside container (jira:jira userid=1000, groupid=1000) has no access to your local Ubuntu folder /data/volumes/jira/jiradata.
There are several solutions, the easiest is to run the container with user root:
services:
jira:
image: blacklabelops/jira
container_name: jirasoftware
user: root
from jira.
Other solutions?
Do you have try it on ubuntu?
from jira.
- Add some random user with user_id 1000 and group_id 1000 to your ubuntu system. Give user own rights to folder /data/volumes/jira/jiradata.
from jira.
I am not sure if docker volumes solves this issue. I would expect the same permission issue because docker saves volumes on your disk.
Add this to you docker-compose file:
volumes:
jiradata:
external: false
Then configure your container to use the volume rather the folder:
services:
jira:
image: blacklabelops/jira
container_name: jirasoftware
volumes:
- jiradata:/var/atlassian/jira
You can see where the volume is saved on your hard disk:
$ docker volume inspect jiradata
from jira.
Third solution:
Check out this project then adjust
export CONTAINER_UID=1000 && \
and
export CONTAINER_GID=1000 && \
To some user_id and group_id of your ubuntu system.
Build container like this:
$ docker build -t blacklabelops/jira .
Give user own rights to folder /data/volumes/jira/jiradata.
from jira.
Closing.
from jira.
For anyone else landing here and still needing help, docker volumes (mentioned above) DO solve the issue.
Automatically created volumes in the docker-compose file (or created externally with docker volume create jiradata
and referenced in the compose file with external: true
) issue get created with permissions that can be accessed from the container.
from jira.
Related Issues (20)
- Unable to build images for jira 7.11.0 HOT 3
- "Custom changes have not been carried over" after Jira upgrade HOT 5
- Connect to external SMTP server? HOT 3
- Unable to set multiple parameters for variables in setenv.sh using SETENV prefix
- Upgrade documentation and configuration to newer PostgreSQL HOT 1
- wget TLS error to github HOT 6
- Is mysql8.0 supported? HOT 3
- Jira Data Center support HOT 1
- image teamatldocker/nginx is not available HOT 3
- dbconfig.xml requires useSSL=false for MySQL HOT 4
- Create JIRA_DB_PASSWORD_FILE variable like POSTGRES_PASSWORD_FILE does
- Become root? / Sudo su? / Add certificates to trust store
- jira 8.18.2 not available on dockerhub HOT 3
- Could not create the Java Virtual Machine HOT 1
- Update MYSQL DRIVER VERSION
- Image needs updating to 8.22.4 (8.22.1 has a MAJOR VULNERABILITY) HOT 1
- Update to 8.22.6 to resolve critical security vulnerabilities
- Update MySQL docker-compose example HOT 1
- Incoming POP3s Mail Server not working
- ls -l
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jira.