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

0 votes
Oct 16 in GCP by anonymous
• 5,700 points
14 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 by Sirajul
• 37,930 points

Related Questions In GCP

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 in GCP by Sirajul
• 37,930 points
30 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 in GCP by Sirajul
• 37,930 points
37 views
0 votes
1 answer

How do I import a OVA file in GCP?

Add the virtual appliance to Cloud Storage. To import ...READ MORE

answered Oct 21 in GCP by Sirajul
• 37,930 points
39 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 in GCP by Sirajul
• 37,930 points
36 views
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 in GCP by Sirajul
• 37,930 points
44 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 in GCP by Sirajul
• 37,930 points
43 views