A Record for docker enviorenment install.
1.install docker
1 | curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
2.install nvidia-docker
1 | curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | \ |
3.install docker-compose
1 | sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose |
4.build
1 | xhost +"local:docker@" |
5.run