Getting Started with Containers in Google Cloud Platform by Shimon Ifrah

Getting Started with Containers in Google Cloud Platform by Shimon Ifrah

Author:Shimon Ifrah
Language: eng
Format: epub
ISBN: 9781484264706
Publisher: Apress


To deploy your first container, use Docker and specify the Docker image from your GCR registry. In my case, I pull my random app from GCR using the following code:$ docker run --rm -p 80:80 gcr.io/web-project-269903/web-service@sha256:af4b91c8a18f3d7aa33a21b429ebd4e1091a0dfbac640f30f063e61cca3c44f9

Open Port

To test that the app is working, open port 80 on the VM because this is the port the app is using. Use the Compute Engine console to do so. From the console, click on the VM and, from the top menu, click on Edit, as shown in Figure 5-2.

Figure 5-2VM Instance Details page



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.