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 还可以启动其他程序
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 还可以启动其他程序
本文标题:Ubuntu18.04 设置开机启动docker
本文链接:https://www.haomeiwen.com/subject/rxkhrktx.html
网友评论