[英]Start YouTrack in docker container on linux
I try install YouTrack in docker on my linux machine我尝试在我的 linux 机器上的 docker 中安装 YouTrack
sudo mkdir -p -m 750 /opt/youtrack/data /opt/youtrack/conf /opt/youtrack/logs /opt/youtrack/backups
须藤 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
须藤 chown -R 13001:13001 /opt/youtrack/data /opt/youtrack/conf /opt/youtrack/logs /opt/youtrack/backups
and和
sudo chmod 750 /opt/youtrack/backups
sudo chown 13001:13001 /opt/youtrack/backups
I try start docker我尝试启动 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
I tried fix it like this article link我试着像这篇文章链接一样修复它
but it not halped.但它并没有停止。
In first time I start this container on 8080 port successful but I try change port(remove container and try start on new port).我第一次在 8080 端口上成功启动了这个容器,但我尝试更改端口(删除容器并尝试在新端口上启动)。 Now I try on 8080 or 7777 I get error
现在我尝试 8080 或 7777 我得到错误
Created app data directories (in your case /opt/youtrack/data
, /opt/youtrack/conf
, /opt/youtrack/logs
, /opt/youtrack/backups
) should be mapped to Youtrack container on every run.创建的应用程序数据目录(在您的情况下
/opt/youtrack/data
、 /opt/youtrack/conf
、 /opt/youtrack/logs
、 /opt/youtrack/backups
)应在每次运行时映射到 Youtrack 容器。 But before running, YouTrack should be configured to use another entropy source.但在运行之前,应将 YouTrack 配置为使用另一个熵源。
For this execute the following command first:为此,首先执行以下命令:
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
As a result, jvm option -Djava.security.egd
will be stored into YouTrack config file inside mapped volume /opt/youtrack/conf
因此,jvm 选项
-Djava.security.egd
将存储到映射卷/opt/youtrack/conf
内的 YouTrack 配置文件中
Then, container can be started with help of the following command:然后,可以在以下命令的帮助下启动容器:
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
See details on how to start and configure YouTrack docker container in official documentation在官方文档中查看如何启动和配置 YouTrack docker 容器的详细信息
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.