i use mac os x.and want use mirror in tutorial, step 1 need this:
docker --registry-mirror=http://<my-docker-mirror-host> -d but, when use command in terminal, did't work:
flag provided not defined: --registry-mirror see 'docker --help'.
then, use other way in tutorial:
you may able add --registry-mirror options docker_opts variable in /etc/default/docker
i don't know add docker_opts. want use mirror in client 1.7.0. can tell me how set mirror?.
use command create mirror:
docker run -d -p 5000:5000 -e registry_storage_filesystem_rootdirectory=/users/v11/documents/docker-registry --restart=always --name mirror -e standalone=false -e mirror_source=https://registry-1.docker.io -e mirror_source_index=https://index.docker.io registry i test , find didn't work describe can download local registry. if fail use command :
docker push localhost:5000/batman/ubuntu this command can work before, don't know happened. maybe flag "standalone=false" affect? want setup mirror, can tell me how do.thanks.
the problem command:
$ docker --registry-mirror=http://<my-docker-mirror-host> -d is intended configuring docker daemon, not docker client. in boot2docker (which you're presumably using), means need log boot2docker vm , run commands there.
you can log boot2docker vm boot2docker ssh. whilst stop daemon , restart new commands, it's best edit file /var/lib/boot2docker/profile used each time boot2docker restarts. add like:
extra_args="--registry-mirror=http://<my-docker-mirror-host>" if restart boot2docker, should go.
Comments
Post a Comment