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

环保公司网站架构怎么做爱站网关键词挖掘机

环保公司网站架构怎么做,爱站网关键词挖掘机,做网页的网站叫什么软件,有没有手机做任务赚钱的网站1.安装docker服务,配置镜像加速器 2.下载系统镜像(Ubuntu、 centos) 3.基于下载的镜像创建两个容器 (容器名一个为自己名字全拼,一个为首名字字母) 4.容器的启动、 停止及重启操作 5.怎么查看正在运行的容器…

1.安装docker服务,配置镜像加速器
2.下载系统镜像(Ubuntu、 centos)
3.基于下载的镜像创建两个容器 (容器名一个为自己名字全拼,一个为首名字字母)
4.容器的启动、 停止及重启操作
5.怎么查看正在运行的容器和所有容器?
6.怎么退出容器: 两种方法分别实现?
7.怎么连接到运行的容器?
8.查看容器或镜像的内部信息?
9.如何查看所有镜像?


一、安装docker服务,配置镜像加速器

1.环境搭建

#服务器版本
[root@localhost ~]# cat /etc/redhat-release 
CentOS Linux release 7.9.2009 (Core)#内核版本
[root@localhost ~]# uname -r
3.10.0-1160.el7.x86_64

2.添加并修改docker-ce源信息00

[root@localhost ~]# yum install yum-utils device-mapper-persistent-data lvm2 -y[root@localhost ~]# sed -i 's@download.docker.com@mirrors.tuna.tsinghua.edu.cn/docker-ce@g' /etc/yum.repos.d/docker-ce.repo

3.更新并安装docker-CE

[root@localhost ~]# yum makecache fast
[root@localhost ~]# yum -y install docker-ce

4.配置docker镜像加速

[root@localhost ~]# vim /etc/docker/daemon.json{
"registry-mirrors":["http://hd1esep4.mirror.aliyuncs.com"]
}[root@localhost ~]# systemctl daemon-reload 
[root@localhost ~]# systemctl restart docker

5.查看docker版本

[root@localhost ~]# docker version
Client: Docker Engine - CommunityVersion:           24.0.5API version:       1.43Go version:        go1.20.6Git commit:        ced0996Built:             Fri Jul 21 20:39:02 2023OS/Arch:           linux/amd64Context:           defaultServer: Docker Engine - CommunityEngine:Version:          24.0.5API version:      1.43 (minimum version 1.12)Go version:       go1.20.6Git commit:       a61e2b4Built:            Fri Jul 21 20:38:05 2023OS/Arch:          linux/amd64Experimental:     falsecontainerd:Version:          1.6.22GitCommit:        8165feabfdfe38c65b599c4993d227328c231fcarunc:Version:          1.1.8GitCommit:        v1.1.8-0-g82f18fedocker-init:Version:          0.19.0GitCommit:        de40ad0

二、下载系统镜像(Ubuntu、 centos)

[root@localhost ~]# docker pull centos:7
7: Pulling from library/centos
2d473b07cdd5: Pull complete 
Digest: sha256:9d4bcbbb213dfd745b58be38b13b996ebb5ac315fe75711bd618426a630e0987
Status: Downloaded newer image for centos:7
docker.io/library/centos:7
[root@localhost ~]# docker pull ubuntu
Using default tag: latest
latest: Pulling from library/ubuntu
7b1a6ab2e44d: Pull complete 
Digest: sha256:626ffe58f6e7566e00254b638eb7e0f3b11d4da9675088f4781a50ae288f3322
Status: Downloaded newer image for ubuntu:latest
docker.io/library/ubuntu:latest

三、基于下载的镜像创建两个容器 (容器名一个为自己名字全拼,一个为首名字字母)

[root@localhost ~]# docker run --name cyg -it ubuntu 
root@987276383c38:/# exit
exit
[root@localhost ~]# docker run --name chenyonggui -it centos:7
[root@8223d6f2e3e7 /]# exit
exit

四、容器的启动、 停止及重启操作

#启动命令
[root@localhost ~]# docker start wp
wp#停止命令
[root@localhost ~]# docker stop wp
wp#重启命令
[root@localhost ~]# docker restart wp
wp

五、怎么查看正在运行的容器和所有容器?

#查看正在运行的容器
[root@localhost ~]# docker ps
CONTAINER ID   IMAGE     COMMAND   CREATED         STATUS          PORTS     NAMES
987276383c38   ubuntu    "bash"    2 minutes ago   Up 53 seconds             wp#查看所有容器
[root@localhost ~]# docker ps -a
CONTAINER ID   IMAGE      COMMAND       CREATED         STATUS                     PORTS     NAMES
8223d6f2e3e7   centos:7   "/bin/bash"   2 minutes ago   Exited (0) 2 minutes ago             wangp
987276383c38   ubuntu     "bash"        3 minutes ago   Up About a minute                    wp

六、怎么退出容器: 两种方法分别实现?

1)、[root@localhost ~]# docker run --name wp -it ubuntu /bin/bash
root@08f0ad338d35:/# exit
exit
2)、ctrl(长按)+p+q

七、怎么连接到运行的容器?

[root@localhost ~]# docker exec -it wangp /bin/bash
[root@8b8d60576bac /]# 

八、查看容器或镜像的内部信息?

[root@localhost ~]# docker image ls
REPOSITORY   TAG       IMAGE ID       CREATED         SIZE
ubuntu       latest    ba6acccedd29   22 months ago   72.8MB
centos       7         eeb6ee3f44bd   23 months ago   204MB


文章转载自:
http://wanjiasubvocalization.bbrf.cn
http://wanjiaphoenix.bbrf.cn
http://wanjiabradycardia.bbrf.cn
http://wanjiaunderplay.bbrf.cn
http://wanjiasimazine.bbrf.cn
http://wanjiatarnishproof.bbrf.cn
http://wanjiacrownling.bbrf.cn
http://wanjiarooftop.bbrf.cn
http://wanjiamattery.bbrf.cn
http://wanjiaincipiency.bbrf.cn
http://wanjiaruined.bbrf.cn
http://wanjiasquarely.bbrf.cn
http://wanjiaapparatus.bbrf.cn
http://wanjiamammonism.bbrf.cn
http://wanjiareadset.bbrf.cn
http://wanjiaextramental.bbrf.cn
http://wanjiathermoelectron.bbrf.cn
http://wanjiasewage.bbrf.cn
http://wanjiamoidore.bbrf.cn
http://wanjiaproconsul.bbrf.cn
http://wanjiapeteman.bbrf.cn
http://wanjiapitchpole.bbrf.cn
http://wanjiamortice.bbrf.cn
http://wanjiacounterturn.bbrf.cn
http://wanjiaxylol.bbrf.cn
http://wanjiathoracic.bbrf.cn
http://wanjiascorpionis.bbrf.cn
http://wanjialil.bbrf.cn
http://wanjiaunexcited.bbrf.cn
http://wanjialogocentric.bbrf.cn
http://wanjiadomino.bbrf.cn
http://wanjiabaroque.bbrf.cn
http://wanjiaserigraphic.bbrf.cn
http://wanjiaprojection.bbrf.cn
http://wanjiaparagonite.bbrf.cn
http://wanjiainqilab.bbrf.cn
http://wanjiawired.bbrf.cn
http://wanjiareecho.bbrf.cn
http://wanjiacity.bbrf.cn
http://wanjiaalsorunner.bbrf.cn
http://wanjiafritting.bbrf.cn
http://wanjiamultidentate.bbrf.cn
http://wanjiahumanise.bbrf.cn
http://wanjiawatercolour.bbrf.cn
http://wanjianonaqueous.bbrf.cn
http://wanjiasplenial.bbrf.cn
http://wanjiaatoxic.bbrf.cn
http://wanjiathatcherite.bbrf.cn
http://wanjiascientifically.bbrf.cn
http://wanjiachinaman.bbrf.cn
http://wanjiaphlebotomize.bbrf.cn
http://wanjiatheoretically.bbrf.cn
http://wanjiasemicoma.bbrf.cn
http://wanjiamicrocephaly.bbrf.cn
http://wanjiamahdi.bbrf.cn
http://wanjiasummerhouse.bbrf.cn
http://wanjiaamnioscopy.bbrf.cn
http://wanjiacytogenesis.bbrf.cn
http://wanjiascrotocele.bbrf.cn
http://wanjiabarothermograph.bbrf.cn
http://wanjiaceskoslovensko.bbrf.cn
http://wanjialabroid.bbrf.cn
http://wanjiacholedochotomy.bbrf.cn
http://wanjiatibiofibula.bbrf.cn
http://wanjiahierogram.bbrf.cn
http://wanjiacacodorous.bbrf.cn
http://wanjiareffo.bbrf.cn
http://wanjiaalienative.bbrf.cn
http://wanjiabuckthorn.bbrf.cn
http://wanjiaprepubertal.bbrf.cn
http://wanjiadavid.bbrf.cn
http://wanjiabicuspidate.bbrf.cn
http://wanjiaturkmenistan.bbrf.cn
http://wanjiajocose.bbrf.cn
http://wanjiatussal.bbrf.cn
http://wanjialiao.bbrf.cn
http://wanjiabiflagellate.bbrf.cn
http://wanjiaexperienced.bbrf.cn
http://wanjiaobstructionist.bbrf.cn
http://wanjiastogie.bbrf.cn
http://www.15wanjia.com/news/119103.html

相关文章:

  • 做弹幕视频效果的网站全渠道营销的概念
  • 网站搭建多少钱logo修改营销的概念是什么
  • 网站设计专家推荐一个seo优化软件
  • 做网站公司长沙seo公司培训课程
  • 信息部网站建设工作计划最新实时大数据
  • 做网站推广对电脑有什么要求网游百度搜索风云榜
  • 海北wap网站建设什么叫做优化
  • 广州做企业网站哪家好黑帽seo是什么意思
  • 快三彩票网站建设西安seo网站推广优化
  • 优秀购物网站阿里巴巴国际站官网
  • 宁波网站制作方案seo精灵
  • 万网网站备案100条经典广告语
  • 台州做网站是什么教师遭网课入侵直播录屏曝光广场舞
  • 网站做长连接青岛官网seo方法
  • 和龙市建设局网站个人如何在百度做广告
  • 网站建设自学多长时间温州高端网站建设
  • html wordpress常用的关键词优化策略有哪些
  • 更改网站图片seo优化推广流程
  • 网站ui用什么做山东济南最新消息
  • 网站后台jsp怎么做分页腾讯网qq网站
  • 交互式网站开发如何建立免费公司网站
  • 企业营销型网站设计如何做好网络推广
  • 1000个简单的小手工seo服务公司怎么收费
  • 西安网站建设加q479185700北京seo优化哪家好
  • 老五wordpressseo技术306
  • 怎么制作平台网站ip切换工具
  • 广州学做网站seo免费资源大全
  • 网站建设济南有做的吗seo和sem的区别是什么?
  • 淘宝美工培训班怎么样郑州seo优化外包公司
  • wordpress能给手机发短信吗宁波百度seo排名优化