dvm icon indicating copy to clipboard operation
dvm copied to clipboard

docker is not working proparly after starting dvm

Open odedpriva opened this issue 10 years ago • 2 comments

I followed the instruction, added an environment variable of DOCKER_CIDR of 172.18.0.1/16, when trying to use docker from my mac i get the following error: ➜ ~ docker images 2014/10/19 23:26:17 Get https://192.168.42.43:2375/v1.15/images/json: tls: oversized record received with length 20527 ➜ ~ docker pull ubuntu 2014/10/19 23:26:22 Post https://192.168.42.43:2375/v1.15/images/create?fromImage=ubuntu%3Alatest: tls: oversized record received with length 20527

any idea what is causing the error?

odedpriva avatar Oct 19 '14 20:10 odedpriva

It's the new docker TLS default, see https://github.com/boot2docker/boot2docker/issues/571 and https://github.com/boot2docker/boot2docker/pull/572. Once this stuff is upstream then you will be able to tweak via an ENV variable, but I suspect there will need to be more plumbing in dvm as well.

dweinstein avatar Oct 19 '14 20:10 dweinstein

I worked around this by running this command after I launch boot2docker (In my case, 10.0.0.0/8 represents my entire internal network that I want to allow "insecure" use of images to):

boot2docker ssh 'sudo sh -c "echo \"EXTRA_ARGS=\\\"--insecure-registry 10.0.0.0/8\\\"\" > /var/lib/boot2docker/profile && sudo /etc/init.d/docker restart"'

CleanCut avatar Dec 12 '14 22:12 CleanCut