Questions tagged [google-container-optimized-os]
40 questions
1
vote
1 answer
Is it safe to delete metric events file in google compute engine vm
So, I found a file called uma-events under metrics folder in a google compute engine vm(built using Container Optimized OS) which is taking about 5gb space. I cannot extend the partition in the current condition and am running low on disk space.…

TubbyStubby
- 137
- 3
- 13
1
vote
1 answer
GCP instance group doesn't start containers
I have an instance template that is supposed to run my app in a container running on Google Cloud's Container-Optimized OS. When I create a single VM from this template it runs just fine, but when I use it to create an instance group the containers…

Ron Inbar
- 2,044
- 1
- 16
- 26
1
vote
0 answers
Running GPU Monitoring on GCP in a container optimized OS
Title has most of the question, but more context is below
Tried following the directions found here:
https://cloud.google.com/compute/docs/gpus/monitor-gpus
I modified the code a bit, but haven't been able to get it working. Here's the abbreviated…

bb197
- 41
- 4
1
vote
1 answer
How to install Ops Agent on Google Container Linux
I am using Google Container Linux as an OS and want to get an alert when the disk is nearly full.
The issue is that it does not have an Ops Agent installed and does not report bytes_used to create an alert…

zino
- 1,222
- 2
- 17
- 47
1
vote
0 answers
GCE Disk Utilization Metric Inactive even if Stackdriver is enabled
I have a Compute Engine Instance using a Container-optimized OS. I had setup stackdriver in order to track disk utilization of the VM instance.
I enabled the stackdriver monitoring agent so using the gcloud command
gcloud compute --project=…

classicbox
- 11
- 2
1
vote
1 answer
docker-compose pull fails but docker pull works with docker-credential-gcr
I'm working on google container optimised OS (COS) trying to pull an image from Google Container Registry using docker-compose. I completed the the authentication using docker-credential-gcr.
Now
docker pull gcr.io/projectname/nextjs works
however
>…

sonium
- 918
- 1
- 11
- 25
1
vote
1 answer
Adding Domain Nameserver into Google Container Optimized OS
I would like to prepend our own domain nameserver into COS. How should I do it ?
Is it just create the folowing in /etc/dhcp/dhclient.conf:
prepend domain-name-servers ;
I have added the above configuration but I still not able to use…

jlim
- 909
- 2
- 12
- 24
1
vote
0 answers
Failed to initialize logging driver: unable to connect or authenticate with Google Cloud Logging
To do: Send logs to Google Logs Viewer from docker container.
Faced Error
I followed this article: https://docs.docker.com/config/containers/logging/gcplogs/
and executed docker run --log-driver=gcplogs nginx
docker: Error response from daemon:…

GamerAtmos
- 119
- 1
- 7
0
votes
0 answers
Is it possible to deploy multiple docker images onto a Google Container-Optimized OS (COS) in GCP
I have a github actions workflow which builds and pushes the docker images to container registry on GCP. Post that it deploys the images onto compute engine. Currently three images are being deployed on three separate VMs. The goal is to have these…
0
votes
0 answers
`per-instance` event is executed on every boot in COS
I am using Container Optimized OS and cloud-init script to run a service as a container. I have a script which format Persistent Drive device with ext4 file system. This script is under per-instance folder:
write_files:
- path:…

Vadym Chekan
- 4,977
- 2
- 31
- 24
0
votes
1 answer
container optimized os ssh timeout too fast
how to fix GCP container optimized os ssh timeout too soon
its /etc/ssh/ssh_config has:
# Google Compute Engine times out connections after 10 minutes of inactivity.
# Keep alive ssh connections by sending a packet every 7…

C.K.
- 4,348
- 29
- 43
0
votes
0 answers
How to periodically restart docker container in Container Optimised OS (Google Cloud)
I'm running a small backend with two docker containers in Container Optimised OS. After a couple of weeks, one of the containers got to a weird state - which broke the backend and I had to restart it manually.
To prevent this from happening in the…

Antonín Karásek
- 547
- 5
- 16
0
votes
1 answer
Why did I have access to Container-Optimized OS-based GCE when I didn't do docker container port mapping?
I want to deploy my spring-boot application on the Google Compute Engine(GCE) of the Google Cloud Platform(GCP). I understand that when distributing containers to the host machine, I have to map the port in the container to the port in the host…

Sungjin Park
- 3
- 2
0
votes
0 answers
How do I enable the Docker Engine API on GCP Container Optimized OS
I am trying to enable and use the Docker Engine API on Google Compute Engine Container Optimized OS, so that I can trigger docker exec commands over HTTP.
However, when I add the TCP host { "hosts": ["unix:///var/run/docker.sock",…

Leonard Niehaus
- 500
- 6
- 16
0
votes
0 answers
Passing log metadata and log severity levels from Container Optimized OS to Cloud Logging
I am running a containerized application with the standard Python logger on aCOS on GCE. I followed the official documentation and connected my logger to Cloud Logging via --metadata google-logging-enabled=true option used during the creation of VM…

matwasilewski
- 384
- 2
- 11