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

0 votes
Oct 16, 2019 in GCP by anonymous
• 19,600 points
328 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,170 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 in GCP by Rahul
• 3,380 points
17 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,170 points
833 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,170 points
2,722 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,170 points
1,540 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,170 points
699 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,170 points
595 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP