docker - start failed because /etc/fstab not found

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-13 10:43:28

问题


I'm using Window Linux Subsystem (Debian stretch). Followed the instruction on Docker website, I installed docker-ce, but it cannot start. Here is the info:

$ sudo service docker start
grep: /etc/fstab: No such file or directory
[ ok ] Starting Docker: docker.
$ sudo service docker status
[FAIL] Docker is not running ... failed!

What should I do with /etc/fstab not found?


回答1:


I was getting the same error. Apparently on my install of WSL with Debian, I didn't have an etc/fstab file. Surprisingly, just creating the file via 'touch' worked:

sudo touch /etc/fstab



回答2:


Perhaps a good signal https://docs.microsoft.com/en-us/windows/wsl/release-notes#build-17093

WSL now processes the /etc/fstab file during instance start [GH 2636].



来源:https://stackoverflow.com/questions/49397435/docker-start-failed-because-etc-fstab-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!