Ubuntu18.04 设置开机启动docker
2020-07-29 本文已影响0人
夏过的雨
wsl设置启动为root用户
window10下执行:
C:\Users\用户名\AppData\Local\Microsoft\WindowsApps\ubuntu1804.exe config --default-user root
子系统下执行:
编辑 /etc/profile
vim /etc/profile
再尾部增加
service docker start
增加 service docker start 重启验证这种方式不只是启动docker 还可以启动其他程序