Skip to content

Instantly share code, notes, and snippets.

@scips
Last active December 6, 2018 20:59
Show Gist options
  • Save scips/0790e72d619589e8f2b2e9d951fc093f to your computer and use it in GitHub Desktop.
Save scips/0790e72d619589e8f2b2e9d951fc093f to your computer and use it in GitHub Desktop.
Docker with ubuntu 16-04 movidius ncs2

Install a base docker

Search for it

Search for 16-04

docker search 16-04

Search for ubuntu

docker search ubuntu

once found

Install

From the cloud

docker pull 1and1internet/ubuntu-16

check if install is successful

docker images

Get X access on this docker + share a drive

xhost +
docker run -i -t --env="DISPLAY"  -v "$(pwd):/root/movidius-ncs2:rw" -v "/tmp/.X11-unix:/tmp/.X11-unix:rw" 1and1internet/ubuntu-16 /bin/bash

Add software and commit to create a new image

Install all you need in your docker and stay logged in

in another terminal

docker container list

take the container id

docker commit <container-id> ubuntu-movidius-ncs2

leave the previous terminal and test the new docker

docker run -i -t --env="DISPLAY"  -v "$(pwd):/root/movidius-ncs2:rw" -v "/tmp/.X11-unix:/tmp/.X11-unix:rw" ubuntu-movidius-ncs2 /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment