1.docker info警告:WARNING: No swap limit supportlinux
sudo vim /etc/default/grubgit
找到 GRUB_CMDLINE_LINUX=""github
在雙引號裏面輸入cgroup_enable=memory swapaccount=1docker
sudo update-grububuntu
sudo rebootvim
2.docker自動補全bash
sudo apt-get install bash-completionspa
3.安裝nvidia-dockercode
https://github.com/NVIDIA/nvidia-dockerget
驗證:docker run --gpus 2 nvidia/cuda:9.0-base nvidia-smi
4.安裝docker
https://docs.docker.com/install/linux/docker-ce/ubuntu/
驗證:sudo docker run hello-world