View Tensorboard on Docker on Google Cloud

后端 未结 3 428
轮回少年
轮回少年 2020-12-08 03:48

I am trying to display TensorBoard from TensorFlow on Docker on Google Cloud.

http://tensorflow.org/how_tos/summaries_and_tensorboard/index.md

tensorbo

3条回答
  •  -上瘾入骨i
    2020-12-08 03:58

    You do not have to use Docker to display the TensorBoard. But if you do want to use Docker, just run the TensorBoard inside of your Docker image.

    The trick is to allow external access to the default TensorBoard tcp port 6006.

    I tried the following working solution to display TensorBoard in my Google Cloud VM.

    1. ensure you pass the gcloud authentication:

      gcloud auth login

    2. allow public access to the tcp port 6006

      gcloud compute firewall-rules create tensorboard-port --allow tcp:6006

    3. Run TensorBoard on your VM

      tensorboard --logdir=workspace/train/

    4. Use external IP address to access the TensorBoard outside your VM:

      Open address http://your_vm_external IP:6006/,

      e.g. http://104.196.140.145:6006/, where 104.196.140.145 is the external IP address of my VM.

    Enjoy TensorBoard

提交回复
热议问题