gcloud deploy error: Image with tag google/docker-registry was not found

前端 未结 3 549
没有蜡笔的小新
没有蜡笔的小新 2020-12-16 07:41

I\'m trying to deploy this project https://github.com/GoogleCloudPlatform/appengine-nodejs-quickstart by using this command

gcloud --project poised-graph-758         


        
相关标签:
3条回答
  • 2020-12-16 07:51

    Deploying with --server preview.appengine.google.com did it for me.

    0 讨论(0)
  • 2020-12-16 07:57

    You need to pull the google/docker-registry image to resolve this error:

    docker pull google/docker-registry
    

    Note: if you receive the following error when trying to redeploy:

    docker.docker.errors.APIError: 500 Server Error: Internal Server Error ("Invalid registry endpoint https://192.168.59.103:49153/v1/: Get https://192.168.59.103:49153/v1/_ping: EOF. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `--insecure-registry 192.168.59.103:49153` to the daemon's arguments. In the case of HTTPS, if you have access to the registry's CA certificate, no need for the flag; simply place the CA certificate at /etc/docker/certs.d/192.168.59.103:49153/ca.crt")
    

    Ensure that your docker daemon has been setup with the 'insecure registry' option (you will need to re-pull the google/docker-registry after the following steps) . You can do this with the following, (which was an answer on https://github.com/docker/docker/issues/8887):

    $ boot2docker delete #removes old image
    $ rm -f ~/.ssh/id_boot2docker* # remove old keys
    $ boot2docker init #generates new keys, cert
    $ boot2docker up
    $ boot2docker ssh
    $ # add EXTRA_ARGS="--insecure-registry <YOUR INSECURE HOST>" 
    $ # to /var/lib/boot2docker/profile
    $ sudo /etc/init.d/docker restart
    
    0 讨论(0)
  • 2020-12-16 07:59

    Try running this first:

    gcloud preview app setup-managed-vms
    

    Also make sure you're running Docker 1.3.0, not 1.3.1.

    Docker 1.4.0 also doesn't work at this moment.

    0 讨论(0)
提交回复
热议问题