处理json格式问题
This commit is contained in:
Vendored
+1
-1
@@ -79,7 +79,7 @@ pipeline {
|
||||
if [ ! -f /etc/docker/daemon.json ] || ! grep -q registry-mirrors /etc/docker/daemon.json; then
|
||||
echo "配置 Docker 镜像加速器..."
|
||||
mkdir -p /etc/docker
|
||||
echo "{\"registry-mirrors\":[\"https://mirror.ccs.tencentcloudapi.com\",\"https://docker.1ms.run\"]}" > /etc/docker/daemon.json
|
||||
echo "{\\\"registry-mirrors\\\":[\\\"https://mirror.ccs.tencentcloudapi.com\\\",\\\"https://docker.1ms.run\\\"]}" > /etc/docker/daemon.json
|
||||
systemctl daemon-reload
|
||||
systemctl restart docker
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user