11 2024 档案
摘要:LVM 作为一种逻辑卷管理技术,可以在 MBR 和 GPT 分区的磁盘上实现,但 GPT 由于支持更大的磁盘和动态扩容,与 LVM 结合使用时更为灵活和强大。 LVM 可以比作面团,GPT MBR是不同品牌的面粉。 磁盘分区类型 MBR(Master Boot Record) 传统分区方案 支持最大
阅读全文
摘要:kubectl create deployment mydeply1 --image nginx kubectl create deployment mydeply2 --replicas 3 --image nginx kubectl scale deployment mydeply1 --rep
阅读全文
摘要:需求: 创建一个名为hello的CronJob,使用busybox镜像,设置每一分钟运行一次返回一次hello,并查看对应的打印信息。 apiVersion: batch/v1beta1 kind: CronJob metadata: name: hello spec: schedule: "*/1
阅读全文
摘要:需求: 通过Dockerfile构建镜像app:v1基础镜像Ubantu工作目录 /usr/local创建jdk目录和tomcat目录将宿主机/root路径夏的jdk和tomcat软件包解压拷贝到/usr/local/jdk和/usr/local/tomcat目录下设置jdk环境变量公开8080端口
阅读全文
摘要:docker commit web1 httpd:v1 docker run -d --name web5 -p 85:80 httpd:v1
阅读全文
摘要:需求:创建1个myvolume1的空卷,将其挂载给web1的容器,挂载目录/usr/local/apache2/htdocs 运行两个web2 web3的容器,更新web2中容器内容为 This is a test! 通过宿主机访问web3查看输出内容。 docker volume create m
阅读全文
摘要:需求:创建两个自定义容器,分别使用自定义网络,使其互通 1. 创建容器 docker run -d --name web1 -p 80:80 httpd 2. 创建网络 docker network create --driver bridge --subnet 192.168.1.0/24 net
阅读全文
摘要:MySQL #用户管理及授权 CREATE USER luke@localhost IDENTIFIED BY 'linuxprobe'; grant all on *.* to luke@localhost; grant select,update,delete,insert on mysql.u
阅读全文
摘要:vim /etc/docker/daemon.json { "insecure-registries": ["192.168.88.134","lab.example.com"], "registry-mirrors": [ "http://hub-mirror.c.163.com", "https
阅读全文