Skip to content

Latest commit

 

History

History
 
 

docker

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Use the container (with docker ≥ 19.03)

cd docker/
# Build:
docker build --build-arg USER_ID=$UID -t cvpods:v0 .
# Launch:
docker run --gpus all -it \
  --shm-size=8gb --env="DISPLAY" --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
  --name=cvpods cvpods:v0

# Grant docker access to host X server to show images
xhost +local:`docker inspect --format='{{ .Config.Hostname }}' cvpods`

Use the container (with docker < 19.03)

Install docker-compose and nvidia-docker2, then run:

cd docker && USER_ID=$UID docker-compose run cvpods

Install new dependencies

Add the following to Dockerfile to make persistent changes.

RUN sudo apt-get update && sudo apt-get install -y vim

Or run them in the container to make temporary changes.