如果想让容器采用重启策略进行容器重启,应该加入哪一个参数
A: --restart always
B: --restart unless stopped
A: --restart always
B: --restart unless stopped
举一反三
- 容器的重启策略中,如果容器停止,则总是重启该容器,相应重启策略为always。()
- 以下什么命令可以重启网卡 A: service iptables restart B: service network restart C: service firewall restart D: service eth0 restart
- 重启http服务的命令是( ) A: systemctl restart httpd B: systemctl httpd restart C: systemctl restart http D: systemctl http restart
- 重启Samba的命令是( )。 A: systemctl restart samba B: systemctl restart smb C: systemctl restart named D: systemctl start smb
- 重启Samba的命令是() A: systemctl restart samba B: systemctl restart smb C: systemctl smb restart D: systemctl start smb