docker常见问题

1.docker info警告:WARNING: No swap limit support

sudo vim /etc/default/grub

找到 GRUB_CMDLINE_LINUX=""

在双引号里面输入cgroup_enable=memory swapaccount=1

sudo update-grub

sudo reboot

2.docker自动补全

sudo apt-get install bash-completion

3.安装nvidia-docker

https://github.com/NVIDIA/nvidia-docker

验证: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

posted @ 2019-10-23 15:51  walker_bin  阅读(337)  评论(0编辑  收藏  举报