启动,重启,暂停 docker容器的shell脚本
用法: ./***.sh -start
#!/bin/bash
# 这个shell脚本用于启动,重启,暂停 docker容器的脚本:
# 输入容器名称
container_name="ttt"
# 匹配参数:执行设个shell脚本后需要添加如下三个参数:-start|-stop|-restart
if [ $# -ne 1 ]; then
echo "Usage: $0 [-start|-stop|-restart]"
Docker容器操作脚本:启动、重启与暂停的Shell命令指南,
启动,重启,暂停 docker容器的shell脚本
用法: ./***.sh -start
#!/bin/bash
# 这个shell脚本用于启动,重启,暂停 docker容器的脚本:
# 输入容器名称
container_name="ttt"
# 匹配参数:执行设个shell脚本后需要添加如下三个参数:-start|-stop|-restart
if [ $# -ne 1 ]; then
echo "Usage: $0 [-start|-stop|-restart]"
6331
4017

被折叠的 条评论
为什么被折叠?