我尝试在Linux机器上的docker中安装YouTrack
sudo mkdir -p -m 750 / opt / youtrack / data / opt / youtrack / conf / opt / youtrack / logs / opt / youtrack / backups
sudo chown -R 13001:13001 / opt / youtrack / data / opt / youtrack / conf / opt / youtrack / logs / opt / youtrack / backups
和
sudo chmod 750 /opt/youtrack/backups
sudo chown 13001:13001 /opt/youtrack/backups
我尝试启动docker
sudo docker run jetbrains/youtrack:2018.1.39916
=== WARNING! WARNING! WARNING! ========================================================================== (start warning)
Non-anonymous volume should has been mapped to folder /opt/youtrack/conf inside container (in non-demo environment)
(as well as non-anonymous volumes to directories /opt/youtrack/data, /opt/youtrack/logs and /opt/youtrack/backups).
Otherwise, application data stored outside container on host machine (if any) is ignored.
Changed made to configuration parameters and application data during this run would be applied to the container local volume only
and won't be reused if product run inside another container
(after container was recreated either for normal run or for upgrade).
See help for more details on what directories inside container should be mapped as non-anonymous volumes and why
=========================================================================================================== (end warning)
Starting YouTrack...
* Configuring JetBrains YouTrack 2018.1
* Made default base-url 'http://1811fd622e49:8080/' from hostname '1811fd622e49' and listen port '8080'
* JetBrains YouTrack 2018.1 runtime environment is successfully configured
[YouTrack Error] Failed to start JetBrains YouTrack 2018.1 due to unexpected exception: Native random generator does not seem to have enough entropy for JetBrains YouTrack 2018.1 to start.
[YouTrack Error] You can fix it by switching to PRNG (with -Djava.security.egd=/dev/zrandom) or by reconfiguring your operation system to provide more random bits.
YouTrack process finished
Launcher is exiting
我试图像本文link
那样修复它但它没有停止。
第一次我在8080端口成功启动此容器,但尝试更改端口(删除容器并尝试在新端口上启动)。现在我尝试使用8080或7777会收到错误消息
答案 0 :(得分:1)
创建的应用数据目录(在您的情况下为/opt/youtrack/data
,/opt/youtrack/conf
,/opt/youtrack/logs
,/opt/youtrack/backups
)应在每次运行时映射到Youtrack容器。
但是在运行之前,应将YouTrack配置为使用其他熵源。
为此,请首先执行以下命令:
docker run --rm -it \
-v /opt/youtrack/conf:/opt/youtrack/conf \
-v /opt/youtrack/logs:/opt/youtrack/logs \
jetbrains/youtrack:2018.1.39916 \
configure -J-Djava.security.egd=/dev/zrandom
因此,jvm选项-Djava.security.egd
将存储在映射卷/opt/youtrack/conf
内的YouTrack配置文件中
然后,可以在以下命令的帮助下启动容器:
docker run -it --name YouTrack-Instance \
-v /opt/youtrack/data:/opt/youtrack/data \
-v /opt/youtrack/conf:/opt/youtrack/conf \
-v /opt/youtrack/logs:/opt/youtrack/logs \
-v /opt/youtrack/backups:/opt/youtrack/backups \
-p 8080:8080 \
jetbrains/youtrack:2018.1.39916
在official documentation中查看有关如何启动和配置YouTrack docker容器的详细信息