Skip to content

为什么使用docker在ubuntu上使用报异常? #5482

Answered by SpiritLing
SpiritLing asked this question in Q&A
Discussion options

You must be logged in to vote

已修复为下面代码,是可以正常成功的

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

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@JohnNiang
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by SpiritLing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants