Using port mapping enables you to access services running inside your Experiment remotely. For example, you might want to run TensorBoard, a simple flask web serverarrow-up-right, or even SSH directly into your running job instancearrow-up-right.
You can easily open ports into your Gradient Experiment using the --ports syntax.
--ports
If you are familiar with the Docker syntax for port forwarding, it is helpful to note that we use a similar form of:
For example, if you are running TensorBoard within your image and want to expose port 8888 to the world, you would just pass the following:
Last updated 6 years ago
--ports $HOSTPORT:$CONTAINERPORT
gradient experiment run ... --ports 8888:8888