Questions tagged [google-container-os]

Container-Optimized OS is an operating system image for your Compute Engine VMs that is optimized for running Docker containers

With Container-Optimized OS, you can bring up your Docker containers on Google Cloud Platform quickly, efficiently, and securely. Container-Optimized OS is maintained by Google and is based on the open source Chromium OS project. * Website

79 questions
4
votes
1 answer

Jupyter Docker on Google Cloud

I would like to run a Jupyter notebook from a docker image on GCP. Specifically I would like to run the one from kaggle/python. On my local machine I can get this working with docker pull kaggle/python and then the following docker cli…
4
votes
2 answers

Google Cloud - Deploy as Container from GCR - Ports not exposed in docker container

I have created a GCP VM instance, with option Deploy as Container pointing to an image in my private GCR(nginx customized). Also while creating the instance, I had given allow 'https' and 'http' traffic. Though the application is working fine, on…
4
votes
1 answer

Send Container-Optimized OS service log output to Stackdriver Logging

How do I get the output from my Cloud-Config service to Stackdriver Logging? I am creating my VM instance using the node.js API, and have followed the example found here to create my service:…
3
votes
0 answers

How to list installed packages on Google Container Optimized OS?

Is there a way to programmatically obtain the list of installed packages on the host itself? I know there is an html file containing licenses info of both runtime and build dependencies that can be found at…
mechpig
  • 31
  • 2
3
votes
1 answer

How to change the logging options for JSON log

When we run up a container on a Compute Engine using COS, it writes its logs to JSON files. We are finding an error: "level=error msg="Failed to log msg \"\" for logger json-file: write /var/lib/docker/containers/[image]-json.log: no space left on…
Kolban
  • 13,794
  • 3
  • 38
  • 60
3
votes
1 answer

Using GPU with containers and Container Optimized OS in Google Cloud VM

I would like to run a custom Docker image with GPU on Google Compute Engine. I have built and pushed the image to the Google Container Registry. It seems logical to use Container-Optimized OS for a host machine in Google Cloud Engine since I don't…
3
votes
2 answers

How to increase root disk partition using ContainerOs within Google Cloud?

After resizing the disk, root partition did not take more space that is available. When running fdisk -l on remote VM result is : The backup GPT table is not on the end of the device. This problem will be corrected by write. Disk /dev/sda: 64…
3
votes
0 answers

Include systemd-journal-upload in Google Container-Optimized OS

Unfortunately Google's Container-Optimized OS image doesn't come with systemd-journal-upload, although it should be generally available after systemd version 216. (The current stable image ships with version 232.) It's possible to build your own…
3
votes
2 answers

Mounting NFS volume in Google Container Engine with Container OS (COS)

After migrating the image type from container-vm to cos for the nodes of a GKE cluster, it seems no longer possible to mount a NFS volume for a pod. The problem seems to be missing NFS client libraries, as a mount command from command line fails on…
3
votes
1 answer

Docker container for google cloudML on compute engine - authenticating for mounting bucket

I have been working with google's machine learning platform, cloudML. Big picture: I'm trying to figure out the cleanest way to get their docker environment up and running on google compute instances, have access to the cloudML API and my storage…
2
votes
1 answer

manifest unknown: Failed to fetch \"latest\" from request \"/v2/$PROJECT_ID/$IMAGE:latest/manifests/latest\ "."

I have some python files inside of a VM that will run every week to scrape info from a website. This is automated through cloud scheduler and cloud function and it is confirmed that it works. I wanted to use cloud build and cloud run to update the…
S68
  • 51
  • 1
  • 5
2
votes
2 answers

Container Optimized OS Docker Shutdown Behavior

I have been deploying containers on GCP Compute Engine VMs using google's Container Optimized OS. I have been slightly struggling to understand the shutdown behavior of the deployed containers when the host VM is stopped in GCP. When my containers…
2
votes
1 answer

Docker seems to be killed before my shutdown-script is executed when my is VM preempted on GCE

I want to implement a shutdown-script that would be called when my VM is going to be preempted on Google Compute Engine. That VM is used to run dockers containers that execute long running batches, so I send them a signal to make them gracefully…
gjanvier
  • 53
  • 4
2
votes
1 answer

How does one easily install Nvidia drivers for Google's container-optimized OS?

I'm trying to use Google Compute to play around with some deep learning models. I was hoping to use Nvidia's CUDA container to run these models. A relatively inexpensive way was to utilize Google's container-optimized OS to host the container…
2
votes
1 answer

For While loop keeps running

The script bellow is supposed to send the data to the url when the Google Compute Engine instance (using Container-Optimized OS image) is started and the dockerized app working. Unfortunately, even if it fails to post the data, the data is received…
Quentin
  • 631
  • 6
  • 16