Find the Docker container ID (from localhost bash):
$ export DOCKER_CONTAINER=`sudo docker ps -a --no-trunc -q`
If more than a single Docker container is running then get the PyTorch container
ID by grepping pytorch
from the docker ps -a
output, then using the final value
of the output (the container's name) we can get the container ID via docker inspect
:
$ sudo docker ps -a | grep pytorch