I am trying to run docker in docker on a gce but to no avail.
I have used similar setup on a host and it worked fine.
However, when try it with --create-with-container
I get:
Segmentation fault (core dumped)
Segmentation fault (core dumped)
I have docker installed in the image. It works fine when the image is run on a normal host. Here is how I am trying to do it:
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
Do you think this is possible at all, and if yes, what should I do?
Thanks