【发布时间】:2020-08-12 13:51:09
【问题描述】:
我正在尝试在 gce 上的 docker 中运行 docker,但无济于事。
我在主机上使用了类似的设置,效果很好。
但是,当尝试使用 --create-with-container 时,我得到:
Segmentation fault (core dumped)
Segmentation fault (core dumped)
我在镜像中安装了 docker。当映像在普通主机上运行时,它可以正常工作。 以下是我的尝试:
gcloud compute instances \
create-with-container docker-in-docker-on-cge \
--container-restart-policy=never \
--container-privileged \
--container-mount-host-path=host-path=/var/run/docker.sock,mount-path=/var/run/docker.sock \
--container-mount-host-path=host-path=/usr/bin/docker,mount-path=/usr/bin/docker \
--container-image=$MYIMAGE
你认为这是否可能,如果是,我应该怎么做?
谢谢
【问题讨论】:
标签: docker google-cloud-platform google-compute-engine google-cloud-stackdriver