Build or Pull the NDSDEV image:
The easiest way to get started is to simply pull the NDSDEV image from Docker Hub:
docker pull ndslabs/ndsdev:latest
You should then be able to run the image as below.
Can't Pull? Build from Source Instead!
Execute the following command at the project root to build up the ndsdev image from source:
. ./devtools/ndsdev/ndsdevctl build
This will create a data container to hold the source code mapped to your host VM. This should allow your code / changes to survive container restarts.
NOTE: It is interesting to note that you should be able to access the data on any volumes defined by the container without it needing to run.
To remove the image built by this step, you can run:
. ./devtools/ndsdev/ndsdevctl rmi
Run or remove a container from the NDSDEV image:
Whether you simply pulled or built it yourself, should then be able to run this image using:
. ./devtools/ndsdev/ndsdevctl run
Stop the container and remove it from docker (i.e. clean):
. ./devtools/ndsdev/ndsdevctl rm
NDSDEV Usage
To start a stopped NDSDEV container:
. ./devtools/ndsdev/ndsdevctl start
To get back to a running instance of NDSDEV:
. ./devtools/ndsdev/ndsdevctl attach
Stop the container:
. ./devtools/ndsdev/ndsdevctl stop
Stop, the start the container:
. ./devtools/ndsdev/ndsdevctl restart
Tips and Tricks
Leave container running, but temporarily exit its shell (requires docker run with -t flag):
CTRL+P, CTRL+Q, CTRL+C
Leave and stop the container:
exit