How do I keep the STDIN stream open in a container on GCE

0 votes
Oct 16, 2019 in GCP by anonymous
• 19,610 points
699 views

1 answer to this question.

0 votes

You can allocate a buffer for STDIN in the container runtime to keep the STDIN stream open in a container. If this is not set, reads from STDIN in the container always result in EOF.

Along with allocating a pseudo-TTY, keeping the STDIN stream open is necessary for establishing an interactive shell in the container and for the container to receive its standard input from a pipe.

From the console:

  1. Go to the VM instances page.

  2. Click the Create instance button to create a new instance.

  3. Under the Container section, check Deploy container image.

  4. Click Advanced container options.

  5. Check Allocate a buffer for STDIN.

answered Oct 16, 2019 by Sirajul
• 59,230 points

Related Questions In GCP

0 votes
0 answers

How do I increase the quota for a kub cluster in Qwiklabs Challenge?

I'm doing the google cloud essentials challenge ...READ MORE

Apr 11, 2022 in GCP by Rahul
• 3,380 points
336 views
0 votes
1 answer

How do I create a VPCN (Virtual private cloud network) on Google Cloud?

You can connect various GCP resources to each ...READ MORE

answered Sep 23, 2019 in GCP by Sirajul
• 59,230 points
1,465 views
0 votes
1 answer

How do I disable suspend a project in Google Cloud?

Shutting down a project within the console releases all ...READ MORE

answered Oct 16, 2019 in GCP by Sirajul
• 59,230 points
5,159 views
0 votes
1 answer

Creating a SQL Server instance using Google Compute engine.

Google Compute Engine provides public images preconfigured with ...READ MORE

answered Sep 23, 2019 in GCP by Sirajul
• 59,230 points
2,638 views
0 votes
1 answer
0 votes
1 answer

How do i install gcloud compute?

The gcloud compute command-line tool enables you to easily ...READ MORE

answered Sep 23, 2019 in GCP by Sirajul
• 59,230 points

edited Jun 16, 2023 by Khan Sarfaraz 1,036 views
0 votes
1 answer

How do I create a Virtual Machine on GCP?

To create a VM instance: It is important you ...READ MORE

answered Sep 20, 2019 in GCP by Sirajul
• 59,230 points
1,073 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP