Does Google Container Registry undergo issues?

I am facing an issue while using container optimized VMs. I launch an instance with following command:

gcloud compute instances create "$instance_name" \
    --tags "http-server" \
    --image container-vm \
    --scopes storage-rw,logging-write \
    --metadata-from-file google-container-manifest="m2.yml" \
    --zone "$my_zone" \
    --machine-type "$my_machine_type"

where m2.yml is:

  • Exclude starting some containers with Docker Compose
  • No goals have been specified for this build.
  • How can I pull a Docker image from a private Docker Hub repo remotely?
  • boot2docker on windows missing apt-get / package manager
  • ctrl-space centos in docker isn't working?
  • Memory snappiness docker
  • version: v1beta2
    containers:
      - name: nginx
        image: nginx
    

    When I ssh to the instance and look into /var/log/docker.log I see:

    time="2015-06-17T07:42:59Z" level=error msg="Handler for GET /containers/{name:.*}/json returned error: no such id: kubelet" 
    time="2015-06-17T07:42:59Z" level=error msg="HTTP Error: statusCode=404 no such id: kubelet" 
    time="2015-06-17T07:42:59Z" level=info msg="GET /version" 
    time="2015-06-17T07:42:59Z" level=info msg="+job version()" 
    time="2015-06-17T07:42:59Z" level=info msg="-job version() = OK (0)" 
    time="2015-06-17T07:42:59Z" level=info msg="GET /containers/docker-daemon/json" 
    time="2015-06-17T07:42:59Z" level=info msg="+job container_inspect(docker-daemon)" 
    no such id: docker-daemon
    time="2015-06-17T07:42:59Z" level=info msg="-job container_inspect(docker-daemon) = ERR (1)" 
    time="2015-06-17T07:42:59Z" level=error msg="Handler for GET /containers/{name:.*}/json returned error: no such id: docker-daemon" 
    time="2015-06-17T07:42:59Z" level=error msg="HTTP Error: statusCode=404 no such id: docker-daemon" 
    

    There is no containers running on the instance and docker images -a says:

    REPOSITORY                       TAG                 IMAGE ID            CREATED              VIRTUAL SIZE
    gcr.io/google_containers/pause   0.8.0               2c40b0526b63        11 weeks ago         241.7 kB
    <none>                           <none>              56ba5533a2db        11 weeks ago         241.7 kB
    <none>                           <none>              511136ea3c5a        2.009460 years ago   0 B
    

    Does the container engine undergo some issues or I am doing something wrong?

    Update1

    I gave an example a try:


    version: v1
    kind: Pod
    spec:
    containers:
    - name: simple-echo
    image: gcr.io/google_containers/busybox
    command: ['nc', '-p', '8080', '-l', '-l', '-e', 'echo', 'hello world!']
    imagePullPolicy: Always
    ports:
    - containerPort: 8080
    hostPort: 8080
    protocol: TCP
    restartPolicy: Always
    dnsPolicy: Default

    and it is still error in the log:

    evgeny@instance:~$ cat /var/log/docker.log | grep error
    time="2015-06-18T16:28:56Z" level=error msg="Handler for GET /containers/{name:.*}/json returned error: no such id: kubelet" 
    time="2015-06-18T16:28:56Z" level=error msg="HTTP Error: statusCode=404 no such id: kubelet" 
    time="2015-06-18T16:28:56Z" level=error msg="Handler for GET /containers/{name:.*}/json returned error: no such id: docker-daemon" 
    time="2015-06-18T16:28:56Z" level=error msg="HTTP Error: statusCode=404 no such id: docker-daemon" 
    time="2015-06-18T16:28:56Z" level=error msg="Handler for GET /images/{name:.*}/json returned error: No such image: gcr.io/google_containers/busybox" 
    time="2015-06-18T16:28:56Z" level=error msg="HTTP Error: statusCode=404 No such image: gcr.io/google_containers/busybox" 
    time="2015-06-18T16:28:56Z" level=error msg="Handler for GET /containers/{name:.*}/json returned error: no such id: docker" 
    time="2015-06-18T16:28:56Z" level=error msg="HTTP Error: statusCode=404 no such id: docker" 
    time="2015-06-18T16:28:56Z" level=error msg="Handler for GET /images/{name:.*}/json returned error: No such image: gcr.io/google_containers/busybox" 
    time="2015-06-18T16:28:56Z" level=error msg="HTTP Error: statusCode=404 No such image: gcr.io/google_containers/busybox" 
    

    I was about to send a feedback via feedback form but Submit fails with: relay__en.js?authuser=1:182 Uncaught TypeError: Cannot set property 'vmFeedbackData' of undefined. Such a story.

  • Does docker created `docker` systemd-slice without `.slice` suffix?
  • Docker Storage Volume
  • How do I run the Hetionet v1.0 docker container?
  • Docker, Supervisord and logging - how to consolidate logs in docker logs?
  • Is there an Docker Maven Plugin in jar file?
  • connection between 2 docker containers using docker compose
  • 2 Solutions collect form web for “Does Google Container Registry undergo issues?”

    The latest container vm image doesn’t support the v1beta2 kubernetes API. You will need to update your manifest to use v1beta3 or v1 (with the corresponding yaml changes).

    The latest version of the container vm documentation shows a yaml example using the v1 API.

    I ran into a similar problem and the solution turned out to be that I was trying to use

    securityContext:
      privileged: true
    

    Kubernetes doesn’t honor that property when loading a docker image onto a GCE instance without using a Google Container cluster (i.e. using a google-container-manifest metadata item on a compute.v1.instance or a compute.v1.instanceTemplate), so it just never loads the image properly onto the instance.

    Removing that property solved my problem.

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