Fix IMAGE_ID to CONTAINER_ID in the docker exec -it command.

Pearu Peterson
2022-04-20 22:22:10 +03:00
parent 2e3c584d1e
commit 1b8d53e5ff

@ -60,7 +60,7 @@ VSCode's remote SSH extension works with both Linux and Windows CI machines. Add
``` ```
## Linux ## Linux
Once you are connected through ssh, you may need to enter a docker container. Run `docker ps` to check if there are any docker containers running. Note that your CI job might be in the process of initiating a docker container, which means it will not show up yet. It is best to wait until the CI job reaches a step where it is building pytorch or running pytorch tests. If the job does have a docker container, run `docker exec -it IMAGE_ID /bin/bash` to connect to it. Once you are connected through ssh, you may need to enter a docker container. Run `docker ps` to check if there are any docker containers running. Note that your CI job might be in the process of initiating a docker container, which means it will not show up yet. It is best to wait until the CI job reaches a step where it is building pytorch or running pytorch tests. If the job does have a docker container, run `docker exec -it CONTAINER_ID /bin/bash` to connect to it.
Now you can find the pytorch working directory, which could be ~/workspace or ~/project, and run commands locally to debug the failure. Now you can find the pytorch working directory, which could be ~/workspace or ~/project, and run commands locally to debug the failure.