haxqer / confluence

The simplest docker file of Confluence. Support v8.9.6(latest) v9.0.3(latest) and v8.5.15(lts)
421 stars 220 forks source link

Error response from daemon: No such container: java #70

Open chinababy-zlj opened 3 months ago

chinababy-zlj commented 3 months ago

[root@89-confluence confluence]# docker exec java -jar /opt/confluence/atlassian-agent.jar \

-d \ -p conf \ -m ladon@novax.email \ -n novax \ -o http://192.168.66.89:8090 \ -s BX4Y-XXXX-XXXX-XXX Error response from daemon: No such container: java [root@89-confluence confluence]# docker exec -it confluence /bin/bash root@0e2be0353f97:/opt/confluence# ja jar jarsigner java javac javadoc javap

我这里是有java的,为啥提示我没有java? 我下载镜像之后,我是否需要进行dockerfile?

chinababy-zlj commented 3 months ago

镜像:haxqer/confluence:9.0.1

chinababy-zlj commented 3 months ago

@haxqer

haxqer commented 3 months ago
docker exec confluence-srv java -jar /var/agent/atlassian-agent.jar \
    -d \
    -p conf \
    -m Hello@world.com \
    -n Hello@world.com \
    -o your-org \
    -s you-server-id-xxxx

你输入的少了 容器名: confluence-srv

haxqer commented 3 months ago

根据你提供的信息,你把 容器名改为了 confluence,所以,命令应该是:

docker exec confluence java -jar /var/agent/atlassian-agent.jar \
    -d \
    -p conf \
    -m Hello@world.com \
    -n Hello@world.com \
    -o your-org \
    -s you-server-id-xxxx