- 博客(4)
- 收藏
- 关注
原创 dockerfile
dockerfile1.创建dockerfile:[root@localhost test]# cat DockerfileFrom centosRun yum install -y vim[root@localhost test]# docker build -t centos:v1 .Sending build context to Docker daemon 2.048kBStep 1/2 : From centos—> 470671670
2020-09-22 13:57:19
184
原创 docker容器
docker容器1.新建容器并启动:[root@localhost ~]# docker run -it centos:latest /bin/bash-t伪终端 -i交互模式2.容器的退出(1.)退出后还显示UP状态:Ctrl+p加ctrl+q 不要ctrl+p+q(2.)退出后显示exitCtrl+c ctrl+d 或者直接命令行exit[root@localhost ~]# docker ps -aCONTAINER ID
2020-09-22 13:52:07
165
原创 docker镜像
1.显示主机上的所有镜像:[root@localhost ~]# docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEhttpd latest d4e60c8eb27a 2 days ago 166MB2.下载镜像:[root@localhost ~]# docker
2020-09-21 17:51:28
156
原创 docker简介,安装
一.docker简介1.docker就是类似于一个集装箱,我们只需要把我们做好的服务程序放到箱子里,就可以搬到任何支持docker的主机上运行我们的程序。2.容器,image,仓库三者的关系:(1)客户端创建容器需要有image,image可以是共有仓库的,也可以是私有仓库的,且创建容器必须得有image。二.docker安装:1.安装必要的一些系统工具:(1)yum install -y yum-utils device-mapper-persistent-data lvm22.添加软件原信
2020-09-21 17:45:14
87
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人