当我运行docker-compose时,Docker显示以下错误,但我看不到yml失败。
PS C:\atlassian-docker> docker-compose up
Starting atlassian-docker_jira_1 ... done
Recreating atlassian-docker_confluence_1 ... done
Attaching to atlassian-docker_jira_1, atlassian-docker_confluence_1
jira_1 | stat: can't stat '/opt/atlassian/jira/conf/server.xml': No such file or directory
jira_1 | /docker-entrypoint.sh: line 6: [: : integer expression expected
jira_1 | /docker-entrypoint.sh: line 21: /opt/atlassian/jira/bin/start-jira.sh: No such file or directory
confluence_1 | stat: can't stat '/opt/atlassian/confluence/conf/server.xml': No such file or directory
confluence_1 | /docker-entrypoint.sh: line 6: [: : integer expression expected
confluence_1 | /docker-entrypoint.sh: line 29: /opt/atlassian/confluence/bin/start-confluence.sh: No such file or directory
atlassian-docker_jira_1 exited with code 127
atlassian-docker_confluence_1 exited with code 127
docker-compose.yml
version: '3'
services:
jira:
image: 'cptactionhank/atlassian-jira-software:7.11.2'
ports:
- '8080:8080'
volumes:
- 'C:\atlassian-docker\var\atlassian\jira:/var/atlassian/jira'
- 'C:\atlassian-docker\opt\atlassian\jira:/opt/atlassian/jira'
confluence:
image: 'cptactionhank/atlassian-confluence:6.10.2'
ports:
- '8090:8090'
- '8091:8091'
volumes:
- 'C:\atlassian-docker\var\atlassian\confluence:/var/atlassian/confluence'
- 'C:\atlassian-docker\opt\atlassian\confluence:/opt/atlassian/confluence'
答案 0 :(得分:0)
根据文档,安装文件位于/opt/atlassian/jira
和/opt/atlassian/confluence
中,我认为您不应该通过安装到compose
的本地文件夹中来覆盖它们。
我认为该文件夹现在为空:/opt/atlassian/jira/conf/server.xml: No such file or directory