为什么使用docker在ubuntu上使用报异常? #5482
Answered
by
SpiritLing
SpiritLing
asked this question in
Q&A
-
如图所示 运行的命令如下 docker run -d --restart on-failure:3 \
--name=haloone \
--link mysqlone:mysqlone \
-e spring.r2dbc.url=r2dbc:pool:mysql://mysqlone:3306/halo \
-e spring.r2dbc.username=root \
-e spring.r2dbc.password=mysqlpassword \
-e halo.external-url=https://blog.example.com/ \
-e spring.sql.init.platform=mysql \
-p 25101:8090 \
-v /var/docer-about/docker-data/halo:/root/.halo2 \
halohub/halo:2.13.1 |
Beta Was this translation helpful? Give feedback.
Answered by
SpiritLing
Mar 9, 2024
Replies: 2 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
-
已修复为下面代码,是可以正常成功的 docker run -d --restart on-failure:3 \
--name=haloone \
--link mysqlone:mysqlone \
-e SPRING_R2DBC_URL=r2dbc:pool:mysql://mysqlone:3306/halo \
-e SPRING_R2DBC_USERNAME=root \
-e SPRING_R2DBC_PASSWORD=mysqlpassword \
-e HALO_EXTERNAL_URL=https://blog.example.com/ \
-e SPRING_SQL_INIT_PLATFORM=mysql \
-p 25101:8090 \
-v /var/docer-about/docker-data/halo:/root/.halo2 \
halohub/halo:2.13.1 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
SpiritLing
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
已修复为下面代码,是可以正常成功的