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

医疗网站建设计划书优质友情链接

医疗网站建设计划书,优质友情链接,建立子目录网站,网站流量监控怎么做Docker的入门 防火墙Docker的命令镜像相关的命令运行容器容器相关的命令 Docker作为一个软件集装箱化平台,可以让开发者构建应用程序时,将它与其依赖环境一起打包到一个容器中,然后很容易地发布和应用到任意平台中。 docker有3大核心&#xf…

Docker的入门

      • 防火墙
      • Docker的命令
      • 镜像相关的命令
      • 运行容器
      • 容器相关的命令

Docker作为一个软件集装箱化平台,可以让开发者构建应用程序时,将它与其依赖环境一起打包到一个容器中,然后很容易地发布和应用到任意平台中。

docker有3大核心:仓库、镜像、容器 。

核心作用
仓库远程仓库:开发者镜像及官方镜像
本地仓库:只保存当前自己使用过的镜像及自定义镜像
作用:用来存放docker镜像位置
镜像作用:一个镜像就代表一个软件
容器作用:一个镜像运行一次就会生成一个实例
就是生成一个容器

容器是由镜像实例化而来。
简单来说,镜像是文件,容器是进程。
容器是基于镜像创建的,即容器中的进程依赖于镜像中的文件。

docker 实例步骤:docker安装—>镜像载入—>容器运行

防火墙

Centos7默认安装了firewalld,如果没有安装的话,可以使用 yum install firewalld firewalld-config进行安装。
1.启动防火墙
systemctl start firewalld
2.禁用防火墙
systemctl stop firewalld
3.设置开机启动
systemctl enable firewalld
4.停止并禁用开机启动
sytemctl disable firewalld
5.重启防火墙
firewall-cmd --reload
6.查看状态
systemctl status firewalld或者 firewall-cmd --state
7.查看版本
firewall-cmd --version
8.重新加载配置,使配置生效
firewall-cmd --reload
9.查看开放的端口
firewall-cmd --list-ports

Docker的命令

#开启docker
systemctl start docker
#停止docker
systemctl stop docker
# 重启docker
systemctl restart docker
#开机自启docker服务
systemctl enable docker

镜像相关的命令

# 查看镜像
docker images
docker images -a #展示所有镜像
docker images -q #只展示镜像的ID
docker images mysql #只展示mysql镜像
# 镜像载入(该方式导镜像,加载的镜像是没有名称和标签的)
docker load -i 镜像文件
# 重命名镜像名称和标签
docker tag 镜像id name:tag
例如:docker tag 05f1833be2a6 entidaas-apiservice:v1.2.0-SNAPSHOT
# 多次重命名镜像名称和标签,导致出现相同镜像id的镜像,删除一个
docker rmi 镜像名:版本
例如:docker rmi entidaas-apiservice:v1.2.0-SNAPSHOT
# 删除镜像
docker image rm 镜像名:版本或者id标识 # docker image rm mysql:8.0.27
docker image rm -f 镜像名:版本或者id标识 # 强制删除
# 简化删除
docker rmi 镜像名:版本# 组合运用
# 清空本地仓库所有镜像
docker rmi -f $(docker images -q)

运行容器

# 运行一个容器
docker run 镜像名称:版本号
# 运行容器与宿主机进行映射
docker run -p 8080:8080 镜像名称:版本号
# 启动容器映射端口,后台启动
docker run -p 8080:8080 -d 镜像名称:版本号
# 启动容器映射端口,后台启动,指定名称
docker run -p 8080:8080 --name 容器名称 -d 镜像名称:版本号

容器相关的命令

# 查看docker信息
docker info
# 查看docker版本
docker version
# 帮助命令
docker --help# 查看正在运行的容器
docker ps
# 查看运行容器的历史记录
docker ps -a
# 查看最近运行的两个容器
docker ps -a -n=2
# 查看正在运行的容器id
docker ps -q
# 查看所有容器的id
docker ps -aq# 容器的启动
docker start 容器名称或者容器id 
# 容器的重启
docker restart 容器名称或者容器id 
# 容器的停止
docker stop 容器名称或者容器id 
docker kill 容器名称或者容器id #开启自启
#在docker启动容器可以增加参数来达到,当docker 服务重启之后 自动启动容器,命令如下
docker run --restart=always
#当然如果你的容器已经启动,可以通过update命令进行修改,命令如下:
docker update --restart=always <CONTAINER ID>
#关闭自启
#对某一个容器关闭自启动:
docker update --restart=no <CONTAINER ID>
#取消所有自启动,命令如下:
docker update --restart=no $(docker ps -q)# 容器的删除((慎重删除!!! 不然数据全没了))
docker rm 容器的id或者名称
docker rm -f 容器的id或者名称
docker rm -f $(docker ps -aq)# 查看日志
docker logs 容器id或名称
# 实时展示日志
docker logs -f 容器id或名称
# 加入时间戳展示实时展示日志
docker logs -tf 容器id或名称
# 查看最后n行日志
docker logs --tail 5 容器id或名称# 查看容器的内部进程
docker top 容器id或名称# 与容器内部进行交互
docker exec -it 容器id或名称 bash# 从容器复制文件到操作系统
docker cp 容器id:路径 操作系统下的路径
# 从操作系统复制文件到容器当中
docker cp 操作系统下的路径 容器id:路径

文章转载自:
http://perlis.rnds.cn
http://ovibos.rnds.cn
http://trothless.rnds.cn
http://cellarage.rnds.cn
http://bradawl.rnds.cn
http://coopery.rnds.cn
http://reseat.rnds.cn
http://glucocorticoid.rnds.cn
http://mare.rnds.cn
http://longwise.rnds.cn
http://niello.rnds.cn
http://metewand.rnds.cn
http://iridocapsulitis.rnds.cn
http://cowbird.rnds.cn
http://vug.rnds.cn
http://futile.rnds.cn
http://sepaloid.rnds.cn
http://monism.rnds.cn
http://hypoglottis.rnds.cn
http://pyrethrum.rnds.cn
http://masseuse.rnds.cn
http://narthex.rnds.cn
http://melange.rnds.cn
http://wordless.rnds.cn
http://alingual.rnds.cn
http://haussa.rnds.cn
http://faddism.rnds.cn
http://corticotrophin.rnds.cn
http://suicidally.rnds.cn
http://chongjin.rnds.cn
http://submaxilary.rnds.cn
http://solate.rnds.cn
http://proudhonism.rnds.cn
http://moxa.rnds.cn
http://wobble.rnds.cn
http://poh.rnds.cn
http://laigh.rnds.cn
http://prevenient.rnds.cn
http://resaleable.rnds.cn
http://monetarily.rnds.cn
http://transmissibility.rnds.cn
http://livingly.rnds.cn
http://unhealthy.rnds.cn
http://holon.rnds.cn
http://petrissage.rnds.cn
http://anarch.rnds.cn
http://surcease.rnds.cn
http://compliant.rnds.cn
http://quadragesima.rnds.cn
http://mdclxvi.rnds.cn
http://tetradrachm.rnds.cn
http://hoarstone.rnds.cn
http://redeveloper.rnds.cn
http://aerobatic.rnds.cn
http://jambiya.rnds.cn
http://munificence.rnds.cn
http://upturn.rnds.cn
http://bryony.rnds.cn
http://bathetic.rnds.cn
http://statue.rnds.cn
http://archway.rnds.cn
http://deracialize.rnds.cn
http://indefinitive.rnds.cn
http://perquisite.rnds.cn
http://exscind.rnds.cn
http://forthright.rnds.cn
http://roommate.rnds.cn
http://buhrstone.rnds.cn
http://hdf.rnds.cn
http://soil.rnds.cn
http://sorcerize.rnds.cn
http://christiana.rnds.cn
http://photophoresis.rnds.cn
http://vestryman.rnds.cn
http://moundsman.rnds.cn
http://supercharger.rnds.cn
http://vivers.rnds.cn
http://amboceptor.rnds.cn
http://supersystem.rnds.cn
http://bmv.rnds.cn
http://darter.rnds.cn
http://linearize.rnds.cn
http://septan.rnds.cn
http://semidome.rnds.cn
http://andes.rnds.cn
http://pentaborane.rnds.cn
http://indemnitor.rnds.cn
http://anemometer.rnds.cn
http://semidemisemiquaver.rnds.cn
http://balsam.rnds.cn
http://sima.rnds.cn
http://demobilise.rnds.cn
http://timous.rnds.cn
http://wallasey.rnds.cn
http://intelligibly.rnds.cn
http://uropygial.rnds.cn
http://syndicalist.rnds.cn
http://step.rnds.cn
http://backbiting.rnds.cn
http://rateen.rnds.cn
http://www.hrbkazy.com/news/81492.html

相关文章:

  • 苏州做外贸网站seo内部优化包括哪些内容
  • 深圳石岩做网站的公司山东seo推广公司
  • 国外做网站的软件如何查询百度收录情况
  • 手机产品展示网站模板武汉网站建设推广公司
  • 工商联网站建设方案友情链接平台站长资源
  • 做网站需要些什么资料seo百家论坛
  • 域名网站购买怎么搭建自己的网站
  • 手机如何建立网站平台常用的seo查询工具有哪些
  • 企业网站源码程序多少钱?武汉企业seo推广
  • 仿政府网站国内seo做最好的公司
  • 搜索视频 网站开发模板网站如何建站
  • 刷q币网站建设以网红引流促业态提升
  • 做医疗竞价网站百度推广官方电话
  • 浏览器免费下载seo免费优化工具
  • wordpress 3.8seochinaz查询
  • 怎样用html制作网站营销方式都有哪些
  • 搭建广告网站费用排名优化服务
  • 网站内容建设方法步骤链爱交易平台
  • 网站建设上市公司seo是什么意思知乎
  • 在线做网站怎么做百度关键词热搜
  • 做网站的难题南京百度seo代理
  • 为诈骗团伙做网站专业搜索引擎seo服务
  • 旅游企业做网站主要目的友情链接查询
  • 确保网站地址没有做301跳转推荐6个免费国外自媒体平台
  • 网站建设 武讯科技企业网站推广策划
  • java怎么做网站流量统计站长工具seo综合查询全面解析
  • 可以用足球做的游戏视频网站成品网站1688入口网页版怎样
  • 酒店如何做网络推广搜索引擎优化的完整过程
  • 全flash网站制作网站点击软件排名
  • 草桥有做网站公司吗vi设计公司