Setting up Docker on Windows for PHP – can not find config file

I installed boot2docker and trying to pull some images from a private server. It asks to --insecure-registry to the config file but can not find it.

Has anyone encountered the same issue and is there any solution?

  • Local-to-remote replication times out or replicates only few documents CouchDb
  • Elastic Beanstalk environment variables for Docker host
  • Get and pass into container the host IP address
  • How to update war files in a docker tomcat container
  • docker cp to container: file name too long
  • Is there a way to backup my docker environment
  • ssh into boot2docker - can you see -v folders from within boot2docker vm
  • JAVA 6 Docker client
  • Jenkins on Docker - Persist data
  • Centos7 :: Error unpacking rpm package httpd-2.4.6-40.el7.centos.1.x86_64
  • How to combine a Nginx and a NodeJS Docker container
  • Sidekiq using the incorrect url for redis
  • One Solution collect form web for “Setting up Docker on Windows for PHP – can not find config file”

    Yeah, this a little bit confusing in boot2docker.

    You need to set those arguments on the daemon, not the client. In boot2docker that means you need to ssh into the VM and edit a config file. You can ssh into the VM by running boot2docker ssh. Then edit the file /var/lib/boot2docker/profile (which may not exist) to include the line:

    EXTRA_ARGS="--insecure-registry=MY_PRIVATE_SERVER"
    

    Where MY_PRIVATE_SERVER is the address of your registry. You’ll then need to restart boot2docker (e.g. boot2docker restart).

    You can find more details at https://github.com/boot2docker/boot2docker/blob/master/doc/FAQ.md under local customisation.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.