/etc/systemd/system/docker-tcp.socket重启失效问题

/etc/systemd/system/docker-tcp.socket中的配置如下:

https://img.mukewang.com/5b76d77e0001d05d03300197.jpg

每次重启后都要运行下面的命令才生效:

https://img1.mukewang.com/5b76d7870001bfce02710082.jpg

请问如何解决这个问题? 


有只小跳蛙
浏览 756回答 1
1回答

喵喔喔

参考 Starting Docker Daemon on Demand with Socket Activation ,在 [Unit] 中添加 PartOf=docker.service 解决了问题PartOf 的作用(来源):When systemd stops or restarts the units listed here, the action is propagated to this unit
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

SQL Server