Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Failed to start container: invalid reference format

I'm trying to test out the example at https://cloud.google.com/compute/docs/instances/create-start-instance

 

```

  1. In the Google Cloud console, go to the VM instances page.

    Go to VM instances

  2. Select your project and click Continue.

  3. Click Create instance.

  4. Specify a Name for your VM. For more information, see Resource naming convention.

  5. In the Container section, click Deploy container.

    1. Specify the Container image to use. For example:

      • To select an NGINX 1.12 container image from Cloud Launcher:

        gcr.io/cloud-marketplace/google/nginx1:1.12

      • To deploy an Apache container image from Docker Hub, always specify the full Docker image name:

        docker.io/httpd:2.4

    2. Optional: Click Advanced container options. For more information, see Configuring options to run your container.

  6. To create the VM, boot the VM, and launch the container, click Create.

```

 

If I use `gcr.io/cloud-marketplace/google/nginx1:1.12`, then I get the following error:

```

#########################[ Error ]#########################
# The startup agent encountered errors. Your container #
# was not started. To inspect the agent's logs use #
# 'sudo journalctl -u konlet-startup' command. #
###########################################################

```

Checking the logs:

```

Sep 19 21:05:15 nginx konlet-startup[632]: 2023/09/19 21:05:15 Pulling image: ' gcr.io/cloud-marketplace/google/nginx1:1.12'
Sep 19 21:05:15 nginx konlet-startup[632]: 2023/09/19 21:05:15 Error: Failed to start container: invalid reference format

```

 

Are the docs at https://cloud.google.com/compute/docs/instances/create-start-instance incorrect?

1 2 1,614