Experiment Ports

Why use ports?

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 server, or even SSH directly into your running job instance.

Opening Ports On Your Experiment

You can easily open ports into your Gradient Experiment using the --ports syntax.

If you are familiar with the Docker syntax for port forwarding, it is helpful to note that we use a similar form of:

--ports $HOSTPORT:$CONTAINERPORT

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:

gradient experiment run ... --ports 8888:8888

Last updated