<p>I am trying to run a docker image in Google Container Engine. The instance comes up with no running docker images. I can ssh and run the docker commands and the service comes up. But nothing happens when I just launch the instance from the terminal. Can some one take a look at what I am doing wrong.</p>

<p>My docker file looks like</p>

<pre><code>FROM golang
RUN mkdir -p /app
COPY . /app
RUN go get golang.org/x/tools/cmd/present
ENTRYPOINT cd /app &amp;&amp; /go/bin/present -http=":8080"
EXPOSE 8080
</code></pre>

<p>containers.yaml looks like</p>

<pre><code>version: v1beta3
containers:
  - name: talks
    image: sheki/talks 
    ports:
      - name: http-port
        containerPort: 8080
        hostPort: 80'
</code></pre>

<p>The command to launch the instance is</p>

<pre><code>gcloud compute instances create zoop \
    --image container-vm \
    --metadata-from-file google-container-manifest=containers.yaml \
    --zone us-central1-a \
    --machine-type f1-micro
</code></pre>

<p>You mentioned in your question that you are using google container engine, but in fact you are using the <a href="https://cloud.google.com/compute/docs/containers/container_vms" rel="nofollow">container vm</a> (which is a bit different). If you want to use container engine, please check out the documentation to create a <a href="https://cloud.google.com/container-engine/docs/clusters/operations" rel="nofollow">container cluster</a>. </p>

<p>I ran your example, and in <code>/var/log/kubelet.log</code> saw the following error:</p>

<pre><code>E0519 17:05:41.285556    2414 http.go:54] Failed to read URL: http://metadata.google.internal/computeMetadata/v1beta1/instance/attributes/google-cont
ainer-manifest: received 'version: v1beta3
containers:
  - name: talks
    image: sheki/talks 
    ports:
      - name: http-port
        containerPort: 8080
        hostPort: 80'
', but couldn't parse as neither single (error unmarshaling JSON: json: cannot unmarshal string into Go value of type int: {Version:v1beta3 ID: UUID:
 Volumes:[] Containers:[{Name:talks Image:sheki/talks Entrypoint:[] Command:[] WorkingDir: Ports:[{Name:http-port HostPort:0 ContainerPort:8080 Proto
col: HostIP:}] Env:[] Resources:{Limits:map[] Requests:map[]} CPU:0 Memory:0 VolumeMounts:[] LivenessProbe:&lt;nil&gt; ReadinessProbe:&lt;nil&gt; Lifecycle:&lt;nil&gt;
 TerminationMessagePath: Privileged:false ImagePullPolicy: Capabilities:{Add:[] Drop:[]}}] RestartPolicy:{Always:&lt;nil&gt; OnFailure:&lt;nil&gt; Never:&lt;nil&gt;} D
NSPolicy: HostNetwork:false}) or multiple manifests (error unmarshaling JSON: json: cannot unmarshal object into Go value of type []v1beta1.Container
Manifest: []) nor single (kind not set in '{"containers":[{"image":"sheki/talks","name":"talks","ports":[{"containerPort":8080,"hostPort":"80'","name
":"http-port"}]}],"version":"v1beta3"}') or multiple pods (kind not set in '{"containers":[{"image":"sheki/talks","name":"talks","ports":[{"container
Port":8080,"hostPort":"80'","name":"http-port"}]}],"version":"v1beta3"}').
</code></pre>

<p>It looks like the documentation for container vms is out of date. </p>
