38 questions
0
votes
0
answers
63
views
GCP COS VM docker logs rotation
I have deployed GCP VM with cos-stable-121-18867-90-97 as boot disk. It is running systemd service on boot that is executing script. Script is executing docker image like this:
#!/bin/bash
# Script ...
0
votes
2
answers
1k
views
Install GCS FUSE in Google Cloud Container Optimized OS (COS)
Could you please provide the commands to install gcsfuse in Google Cloud Container Optimized OS (COS) and mount a bucket? Also I'm not sure which would be recommended, doing it directly on OS or on ...
2
votes
2
answers
1k
views
Where are files saved when using Google Colab with a Custom GCE VM
I am using Google Colab in combination with a Custom GCE VM based on the instructions here. I now need a way to retrieve files from the VM without using the Colab interface due to a bug described in ...
0
votes
1
answer
44
views
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 ...
0
votes
1
answer
136
views
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 ...
2
votes
1
answer
233
views
Disable Container Auto Launch on Google Container Optimized OS on GCP
According to Creating and configuring instances and my own testing, the Google Container Optimized OS launches the specified container on instance startup.
However, I'd like to execute my own startup ...
3
votes
0
answers
378
views
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 ...
0
votes
0
answers
166
views
COS: External IP port binding AND communicates with sibling container
I am running a VM with Container-Optimized OS.
I want a container that both:
A. Binds to the external IP of the VM.
B. Contacts a sibling container, that listens on 127.0.0.1:3010.
An issue I am ...
0
votes
1
answer
525
views
Where to keep persistent, executable files in Container-Optimized OS
I'm using a Container-Optimized OS on GCP's Compute Engine. I'm mounting a directory volume to my container, the problem is that my application creates and executes files in this volume, but Container-...
5
votes
1
answer
2k
views
How can I monitor memory usage of container vm running on GCE
I've created new VM with docker container. This VM uses Google Container-Optimized OS. How can I monitor memory usage of this instance?
There is no memory usage in observability:
I see following ...
0
votes
1
answer
2k
views
Google Kubernetes Engine - How to update Container Optimized OS (COS)
I have updated my GKE nodes to version v1.18.17-gke.1900 on 18th of May 2021. Nevertheless the recent COS version is not included in that GKE version. Where do I find which COS version is in which GKE ...
0
votes
1
answer
1k
views
why “kubectl exec -it” cannot login on google container optimised os
When i ran kubectl exec -it /bin/bash, i got error like this
OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "exec: \"env\": executable ...
2
votes
0
answers
365
views
Setting port mapping in docker on Container-Optimized OS
I am trying to setup couchdb on Container-Optimized OS inside Google CLoud Platform. The container needs 5984 port to be redirected to host. I can't make it work with standard container setup, I can't ...
0
votes
0
answers
191
views
Authenticating private repositories when running docker/compose in container
I'm using GCP's container-optimized image to run a number of containers through docker compose. As mentioned in this article, public repositories are working fine but I can't figure out why docker ...
5
votes
2
answers
4k
views
How do I get startup-script logs from Container-optimized OS in a GCE instance?
I'm running a container-optimized compute instance with this startup-script:
#!/bin/bash
mkdir /home/my-app
cd /home/my-app
export HOME=/home/my-app
docker-credential-gcr configure-docker
docker run ...
9
votes
3
answers
9k
views
binary install in google container optimized OS
As it is the Linux version of OS, I tried firing, hoping that would work
apt-get install jq
But it says apt-get: command not found.
How I can install new binaries as I wanted to add some extra logic ...
2
votes
1
answer
2k
views
How to update the containers in Googles container optimized os?
I want to use a buddy pipeline to push new images to DockerHub. When new images are pushed, the Google Container Optimized OS should pull the new ones. I'm using a Google Computer engine to host ...
2
votes
1
answer
2k
views
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=...
0
votes
2
answers
2k
views
How does Google Container Optimized OS handle a scheduled shutdown?
I'm playing around with Container Optimized OS on Google Cloud and found that the 'Auto Update' feature doesn't apply the updates until the system is restarted, and doesn't offer any functionality for ...