
docker
y_zilong
书读百遍 其义自见
展开
-
K8s的PV/PVC
1、Volume#kubernentes的存储部分第一个介绍了Volume。Volume可以支持local、nfs、cephfs、glusterfs以及各种云计算平台。#官网Volume的配置都是在一个创建pod的yaml文件中,例如apiVersion: v1kind: Podmetadata: name: test-pdspec: containers: - image: k8s.gcr.io/test-webserver name: test-container原创 2022-01-14 11:10:19 · 951 阅读 · 0 评论 -
kubeadm 搭建k8s测试环境
由于工作中需要单台服务器或者双台服务器搭建开发k8s测试环境,如下是具体的搭建过程#关闭防火墙systemctl stop firewalld && systemctl disable firewalld#关闭selinuxsed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config && setenforce 0#关闭sawp 分区swapoff -ased -i '/ swap / s/^原创 2022-01-12 10:39:01 · 641 阅读 · 0 评论 -
Docker分层打镜像
1自定义Centos基础镜像[root@cent7-yzil ~]# docker pull centos:7.9.2009[root@cent7-yzil ~]# mkdir /opt/dockerfile/{web/{nginx,tomcat,jdk,apache},system/{centos,ubuntu,redhat}} -pv[root@cent7-yzil ~]# cd /opt/dockerfile/system/centos/[root@cent7-yzil centos]原创 2021-08-21 21:34:45 · 246 阅读 · 0 评论 -
docker的安装
1、docker ubuntu安装#如果你过去安装过docker,先删除yzil@ubuntu01:~$ sudo apt-get remove docker docker-engine docker.io#首次安装依赖yzil@ubuntu01:~$ sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common#信任docker的GPG公钥yzil@ubun原创 2021-07-10 21:50:25 · 161 阅读 · 0 评论