Henry M
Henry M

Reputation: 1

Is it possible to use the Dev Containers VSCode extension on a Jetson Nano?

I have a working Docker development container running on my Windows machine's VSCode, but it will not run on my Jetson Nano.

I can get Docker to work on the Jetson normally (outside of VSC) with my choice of base image.

However, when I modify the Dev Container's Dockerfile to just be FROM <working_base_img>, it still does not work.

I guess I'm probably running into some x86 vs ARM issue.

Is it possible to use the VSC Dev Containers extension on a Jetson Nano? If so, how? If not, is there an alternative to run the same container for development purposes on both a Jetson and Windows/Mac?

Upvotes: 0

Views: 166

Answers (1)

csvke
csvke

Reputation: 11

Yes you can. In your localhost (laptop) VS Code, install Remote Explorer extension. Setup remote access into your remote (Jetson).

Once you have remote access into your remote (Jetson) in a VS Code workspace, you can then install Docker extension and Dev Containers VS Code extension in your remote (Jetson).

Then you can use Dev Containers through this remote session of your remote (Jetson) - and if you click the Docker icon on the side bar of the remote (Jetson) session of VS Code, you can right click any running container and Attach a VS Code session to it.

There you have it, a 99% fully featured VS Code workspace in your localhost, developing a remote Dev Container hosted in a headless Jetson.

If it’s the first time for you to do it, don’t do it in the middle of the night / tired, because at one point you can have up to 3 opened VS Code workspace which can be confusing!

Optimise this workflow by using Jetson Container.

Upvotes: 1

Related Questions