Tuesday, November 14, 2017

How to View Files in a Google App Engine Docker Container

This post has been adapted (abridged) from the Google Cloud Platform (GCP) Debugging an Instance documentation. I wanted to see the file structure that was being deployed to my Angular 5 application for my YouTube video highlight web app (Tunnel Video). These are the steps required.

1. Go to your App Engine instances in the GCP console


2. Find the instance and choose the SSH option to open a terminal in a browser window

3. Once the terminal window for the instance opens, list the docker containers: $ sudo docker ps

4. Find the docker container in the list with your project name in it and then run: $ container_exec containerId /bin/bash

5. This will open a shell in your container. From there, just list your files as usual: ls app