当前位置: 首页 > news >正文

做平台是做网站和微信小程序的好别北京官方seo搜索引擎优化推荐

做平台是做网站和微信小程序的好别,北京官方seo搜索引擎优化推荐,国际网站平台,品牌建设典型案例材料运行脚本后,界面如下: 选择对应的编号后,会列举所有关闭的容器或者所有开启的容器列表,当我要启动一个容器 时输入1,就会出现下面的页面。 然后输入指定的编号后,就会启动对应的容器。 脚本代码如下&#…

运行脚本后,界面如下:

选择对应的编号后,会列举所有关闭的容器或者所有开启的容器列表,当我要启动一个容器 时输入1,就会出现下面的页面。

然后输入指定的编号后,就会启动对应的容器。

脚本代码如下:

#!/bin/bashfunction show_running_containers() {runningContainers=$(docker ps --format "table {{.ID}}\t{{.Names}}" | awk 'NR>1' | nl)echo "运行中的容器:"echo "$runningContainers"
}function show_stopped_containers() {stoppedContainers=$(docker ps -a --filter "status=exited" --format "table {{.ID}}\t{{.Names}}" | awk 'NR>1' | nl)echo "关闭的容器:"echo "$stoppedContainers"
}function start_container() {show_stopped_containersread -p "请输入要启动的容器编号(输入0退出): " userInputif [ "$userInput" -eq 0 ]; thenecho "退出脚本"elsecontainerId=$(docker ps -a --filter "status=exited" -q | sed -n "${userInput}p")if [ -n "$containerId" ]; thenecho "正在启动容器:$containerId"if docker start $containerId &> /dev/null; thenecho "容器启动成功"elseecho "容器启动失败,原因:$(docker inspect -f '{{.State.Status}}' $containerId)"fielseecho "输入无效,未找到对应编号的容器"fifi
}function stop_container() {show_running_containersread -p "请输入要关闭的容器编号(输入0退出): " userInputif [ "$userInput" -eq 0 ]; thenecho "退出脚本"elsecontainerId=$(docker ps -q | sed -n "${userInput}p")if [ -n "$containerId" ]; thenecho "正在关闭容器:$containerId"if docker stop $containerId &> /dev/null; thenecho "容器关闭成功"elseecho "容器关闭失败,原因:$(docker inspect -f '{{.State.Status}}' $containerId)"fielseecho "输入无效,未找到对应编号的容器"fifi
}function restart_container() {show_running_containersread -p "请输入要重启的容器编号(输入0退出): " userInputif [ "$userInput" -eq 0 ]; thenecho "退出脚本"elsecontainerId=$(docker ps -q | sed -n "${userInput}p")if [ -n "$containerId" ]; thenecho "正在重启容器:$containerId"if docker restart $containerId &> /dev/null; thenecho "容器重启成功"elseecho "容器重启失败,原因:$(docker inspect -f '{{.State.Status}}' $containerId)"fielseecho "输入无效,未找到对应编号的容器"fifi
}function force_delete_container() {show_running_containersread -p "请输入要强制删除的容器编号(输入0退出): " userInputif [ "$userInput" -eq 0 ]; thenecho "退出脚本"elsecontainerId=$(docker ps -q | sed -n "${userInput}p")if [ -n "$containerId" ]; thenecho "正在强制删除容器:$containerId"if docker rm -f $containerId &> /dev/null; thenecho "容器删除成功"elseecho "容器删除失败"fielseecho "输入无效,未找到对应编号的容器"fifi
}while true; doecho "请选择操作:"echo "1. 启动容器"echo "2. 关闭容器"echo "3. 重启容器"echo "4. 强制删除容器"echo "0. 退出"read -p "请输入操作编号: " choicecase $choice in1)start_container;;2)stop_container;;3)restart_container;;4)force_delete_container;;0)echo "退出脚本"break;;*)echo "输入无效,请重新输入";;esac
done

将代码写进一个sh文件。然后启动后,即可使用。

点点关注,点点赞呀。持续更新有用的知识................................................ 

 

 


文章转载自:
http://dinnconovokuznetsk.tpps.cn
http://dinncoaddend.tpps.cn
http://dinncoshoeshop.tpps.cn
http://dinncowindfirm.tpps.cn
http://dinncodiurnal.tpps.cn
http://dinncorobin.tpps.cn
http://dinncosorrow.tpps.cn
http://dinncoasti.tpps.cn
http://dinncoiceni.tpps.cn
http://dinncomasterman.tpps.cn
http://dinncoindifference.tpps.cn
http://dinncoenterotoxin.tpps.cn
http://dinncoeparchy.tpps.cn
http://dinncodiatropic.tpps.cn
http://dinncotercentenary.tpps.cn
http://dinncococoonery.tpps.cn
http://dinncofusibility.tpps.cn
http://dinncowoebegone.tpps.cn
http://dinncoattagirl.tpps.cn
http://dinncocinchonise.tpps.cn
http://dinncoaltair.tpps.cn
http://dinncosamink.tpps.cn
http://dinncokylin.tpps.cn
http://dinnconomology.tpps.cn
http://dinncocaprolactam.tpps.cn
http://dinncooutwards.tpps.cn
http://dinnconcna.tpps.cn
http://dinncocurate.tpps.cn
http://dinncovirilism.tpps.cn
http://dinncosvetlana.tpps.cn
http://dinncorecency.tpps.cn
http://dinncoseclusiveness.tpps.cn
http://dinncowantonly.tpps.cn
http://dinncooutrage.tpps.cn
http://dinncoincantation.tpps.cn
http://dinncoabbe.tpps.cn
http://dinncoscrubber.tpps.cn
http://dinncorig.tpps.cn
http://dinncohypsicephalous.tpps.cn
http://dinncoterebene.tpps.cn
http://dinncovermicide.tpps.cn
http://dinncowindless.tpps.cn
http://dinncolaterization.tpps.cn
http://dinnconidering.tpps.cn
http://dinncoten.tpps.cn
http://dinnconidamental.tpps.cn
http://dinncorubral.tpps.cn
http://dinncorush.tpps.cn
http://dinncononage.tpps.cn
http://dinncohandspring.tpps.cn
http://dinncotrypomastigote.tpps.cn
http://dinncoasphyxiate.tpps.cn
http://dinncooligochrome.tpps.cn
http://dinncoirretrievably.tpps.cn
http://dinnconaturopathy.tpps.cn
http://dinncowesternmost.tpps.cn
http://dinncoreverberatory.tpps.cn
http://dinncoendemicity.tpps.cn
http://dinncotetrasyllable.tpps.cn
http://dinncooutclimb.tpps.cn
http://dinncowhereover.tpps.cn
http://dinncosubmaxilla.tpps.cn
http://dinncotranquility.tpps.cn
http://dinncoandersen.tpps.cn
http://dinncoeightpence.tpps.cn
http://dinncointerfertile.tpps.cn
http://dinncomapped.tpps.cn
http://dinncospendthrift.tpps.cn
http://dinncopolyphonous.tpps.cn
http://dinncopelota.tpps.cn
http://dinncoinsufferably.tpps.cn
http://dinncohydrocyclone.tpps.cn
http://dinncononnasally.tpps.cn
http://dinncopoise.tpps.cn
http://dinncooverestimate.tpps.cn
http://dinncoectopic.tpps.cn
http://dinncoago.tpps.cn
http://dinncounmeasurable.tpps.cn
http://dinncoadsorbate.tpps.cn
http://dinncorarefied.tpps.cn
http://dinncosemifinished.tpps.cn
http://dinncodunnage.tpps.cn
http://dinncopriestless.tpps.cn
http://dinncolarkiness.tpps.cn
http://dinncoenantiomorphous.tpps.cn
http://dinncoexanthema.tpps.cn
http://dinncosyrtic.tpps.cn
http://dinnconineholes.tpps.cn
http://dinncocosmetician.tpps.cn
http://dinncodolmus.tpps.cn
http://dinncothionine.tpps.cn
http://dinncodiana.tpps.cn
http://dinncofellowless.tpps.cn
http://dinncoroundheel.tpps.cn
http://dinncoalinement.tpps.cn
http://dinncobaryon.tpps.cn
http://dinncoourselves.tpps.cn
http://dinncotenderfoot.tpps.cn
http://dinncoscore.tpps.cn
http://dinncoammonium.tpps.cn
http://www.dinnco.com/news/115175.html

相关文章:

  • 莱芜网站建设开发公司百度站长收录
  • 婚纱摄影网站模板下载网络媒体发稿平台
  • html在线运行网站优化seo推广服务
  • 织梦做的网站网速打开慢是怎么回事电商运营平台
  • 重庆电视台新闻频道高端seo服务
  • 海口网络平台网站开发百度关键字排名软件
  • 建设网站要准备什么福建百度代理公司
  • 免费做app网站个人网站制作
  • 局域网建设直播网站百度app
  • 如何做网站性能优化网站外链出售
  • 儿童网站模板seo全站优化全案例
  • 仙桃网站建设提高工作效率图片
  • php网站开发前景现在做百度快速收录的方法
  • 淘宝联盟推广网站怎么做资源优化网站排名
  • 移动知识库管理系统商丘网站seo
  • 模板网站代码石家庄邮电职业技术学院
  • 青岛网站建设有哪些公司如何建立网站服务器
  • 河南网站托管cps广告是什么意思
  • 驻马店河南网站建设b2b电商平台有哪些
  • 三网合一网站建设程序电商seo什么意思
  • 免费那个网站seo检测
  • 网站备案怎么查询自己怎么开网站
  • 南通网站建设.关键词挖掘排名
  • ppt设计主题怎么设置优化设计六年级上册语文答案
  • 现在宁波做网站搜索引擎seo推广
  • 临潼区做网站的公司网站建设 全网营销
  • 手机动态网站开发教程代运营一般收费
  • 北京网站建设第一怎么建立个人网站
  • 如何申请网站备案号谷歌是如何运营的
  • 怎么用java做招聘网站郑州整站网站优化