首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏玖叁叁

    Volumes介绍

    mycontainer image: nginx volumeMounts: - name: myvolume mountPath: /usr/share/nginx/html volumes > /usr/share/nginx/html/index.html && nginx -g 'daemon off;'" ] volumes: - name: myvolume emptyDir

    69300编辑于 2023-05-02
  • 来自专栏玖叁叁

    Volumes示例

    mycontainer image: nginx volumeMounts: - name: myvolume mountPath: /usr/share/nginx/html volumes

    1.1K11编辑于 2023-05-02
  • 来自专栏卓谷山

    【Docker】数据镜像(volumes

    此命令将在/var/lib/docker/volumes目录中创建一个卷。 docker-compose.yml 目录挂载version: "3.2"services: web: image: nginx:latest ports: - 8080:80 volumes htmldocker-compose.yml 创建卷version: "3.2"services: web: image: nginx:latest ports: - 8080:80 volumes : - html_files:/usr/share/nginx/html web1: image: nginx:latest ports: - 8081:80 volumes : - html_files:/usr/share/nginx/html volumes: html_files:

    89520编辑于 2022-11-22
  • 来自专栏玖叁叁

    Volumes EmptyDir实现数据共享(三)

    , "cat /data/hello.txt; sleep 600" ] volumeMounts: - name: shared-data mountPath: /data volumes

    41111编辑于 2023-05-02
  • 来自专栏玖叁叁

    Volumes EmptyDir实现数据共享(二)

    - name: shared-data mountPath: /data command: ["/bin/sh", "-c", "cat /data/index.html"] volumes

    42411编辑于 2023-05-02
  • 来自专栏又见苍岚

    Docker 数据持久化 volumes

    绝对路径 db: image: mariadb:latest restart: always ports: - "3306:3306" volumes: 卷标 db: image: mariadb:latest restart: always ports: - "3306:3306" volumes: - [卷标名称]:/var/lib/mysql volumes: [卷标名称]: 使用卷标的方式,简洁易于管理,但是数据实际存放的位置需要费点周折才能看到。

    53610编辑于 2024-04-24
  • 来自专栏玖叁叁

    Volumes HostPath挂载宿主机路径(一)

    image: nginx volumeMounts: - name: my-persistent-storage mountPath: /usr/share/nginx/html volumes

    1.7K20编辑于 2023-05-03
  • 来自专栏玖叁叁

    Volumes EmptyDir实现数据共享(一)

    EmptyDir 使用方法创建 EmptyDir可以通过 Pod 中的 volumes 字段来创建 EmptyDir。 mountPath: /data command: ["/bin/sh", "-c", "echo 'Hello from container-2' > /data/index.html"] volumes mountPath: /data command: ["/bin/sh", "-c", "echo 'Hello from container-2' > /data/index.html"] volumes

    58511编辑于 2023-05-02
  • 来自专栏授客的专栏

    Kubernetes 存储概念之Volumes介绍

    Volumes 默认情况下容器中的磁盘文件是非持久化的,对于运行在容器中的应用来说面临两个问题,第一:当容器挂掉,K8S重启它时,文件将会丢失;第二:当Pod中同时运行多个容器,容器之间需要共享文件时。 要使用卷,需要在.spec.volumes中指定要为pod提供的卷,并在.spec.containers[*].volumeMounts中声明加载这些卷到容器的位置。 image: busybox volumeMounts: - name: config-vol mountPath: /etc/config volumes volumeMounts[n].mountPath而言,也就是说,mountPath/path即为ConfigMap文件在Pod中的绝对路径;volumeMounts[n].name要和引用的卷的名称(volumes 有关更多详细信息,请参阅有关 Configuring Secrets的信息 查看更多卷类型介绍:https://kubernetes.io/docs/concepts/storage/volumes/#

    2.7K30编辑于 2022-05-06
  • 来自专栏玖叁叁

    Volumes HostPath挂载宿主机路径(二)

    : nginx image: nginx volumeMounts: - name: nginx-config mountPath: /etc/nginx/conf.d volumes

    57830编辑于 2023-05-03
  • 来自专栏实战docker

    Kubernetes的Local Persistent Volumes使用小记

    关于Local Persistent Volumes 文中将Local Persistent Volumes简称为Local PV; Kubernetes的Local PV自1.7版本进行alpha发布

    1K20编辑于 2022-05-09
  • 来自专栏实战docker

    Kubernetes的Local Persistent Volumes使用小记

    欢迎访问我的GitHub 这里分类和汇总了欣宸的全部原创(含配套源码):https://github.com/zq2599/blog_demos 关于Local Persistent Volumes 文中将 Local Persistent Volumes简称为Local PV; Kubernetes的Local PV自1.7版本进行alpha发布,在1.10版本beta发布,最终的正式发布(General

    1.6K30发布于 2021-04-22
  • 来自专栏运维ABC

    OpenStack实践(八):Unable to delete specified volumes

    23bc3619-642d-4a19-baa8-f9fb2412e75d [swm13aen1b.png] 报错:ERROR: Unable to delete any of the specified volumes

    1.2K20发布于 2019-09-10
  • 来自专栏自动化测试工具

    02、数据卷(Data Volumes)以及dockefile详解

    数据管理 在生产环境中使用 Docker ,往往需要对数据进行持久化,或者需要在多个容器之间进行数据共享,这必然涉及容器的数据管理操作 容器中的管理数据主要有两种方式: 数据卷 Data Volumes Containers 使用特定容器维护数据卷 注1:上章节还介绍过cp命令在宿主机和docker容器之间复制文件         docker cp 宿主机绝对路径  容器id:路径 2、数据卷(Data Volumes .数据卷 默认会一直存在,即使容器被删除 数据卷相关操作: 2.1.创建数据卷 docker volume create my-vol  此时,数据卷默认会放到/var/lib/docker/volumes 路径下,会发现所新建的数据卷位置,查看命令如下:  ## 参数可以为数字“1”,字母L:大小写均可,但效果不一样       ls -1 /var/lib/docker/volumes 2.2.查看所有的数据卷 由多个名值对组成,逗号分隔,每个键值由 <key> = <value> 元组组成            1.type=volume普通数据卷(默认即这种类型),映射到主机/var/lib/docker/volumes

    80140编辑于 2023-10-17
  • 来自专栏Kubernetes GO

    DCOS之K8S的volumes

    test-emptydir spec: containers: - name: nginx image: nginx volumeMounts: - name: empty mountPath: /mnt volumes test-hostpath spec: containers: - name: nginx image: nginx volumeMounts: - name: hostpath mountPath: /mnt volumes name: test-rbd spec: containers: - name: nginx image: nginx volumeMounts: - name: rbd mountPath: /mnt volumes

    76820发布于 2021-02-01
  • 来自专栏WebJ2EE

    【Docker】:Docker 数据管理 - Volumes & Bind Mounts

    Volumes 2.2. Bind mounts 2.3. tmpfs mounts 2.4. Tips for using bind mounts or volumes 3. Volumes are stored in a part of the host filesystem which is managed by Docker (/var/lib/docker/volumes (译:Volumes 的数据存储在宿主机的特定区域中(Linux:/var/lib/docker/volumes/),由 Docker 管理,其他软件是不能乱改的。) (译:Bind mounts 在 Docker 早期版本中就已经存在了,但是它跟 volumes 比,能力上少一些。Docker 建议使用 volumes. Volumes 使用详解 create a volume docker volume create webj2eedev-vol list volumes docker volume ls inspect

    1.8K30编辑于 2022-01-04
  • 来自专栏懒人开发

    (6.2)James Stewart Calculus 5th Edition:Volumes

    Volumes体积 通常,柱体,我们对应的体积公式为: 常见的柱体有: 如果,对应的xi 的切面为: 那么,类似于平面 我们可以把体积切分为n块 对应的提交,可以简单理解成: Definition of

    58430发布于 2018-09-12
  • 来自专栏懒人开发

    (6.3)James Stewart Calculus 5th Edition:Volumes by Cylindrical Shells

    Volumes by Cylindrical Shells 柱体壳的体积 如果,我们要求一个曲线,围绕y轴旋转,形成的体积 也就是图像类似 这个时候,我们求出一个高度,对应的体积 例如: 简单计算,

    49120发布于 2018-09-12
  • 来自专栏小脑斧科技博客

    在容器中获取配置及上下文信息 -- Projected Volumes

    volumeMounts: - name: mysql-cred mountPath: "/projected-volume" readOnly: true volumes volumeMounts: - name: config-volume mountPath: "/projected-volume" readOnly: true volumes volumeMounts: - name: podinfo mountPath: /etc/podinfo readOnly: false volumes volumeMounts: - name: config-volume mountPath: "/projected-volume" readOnly: true volumes volumeMounts: - name: podinfo mountPath: /etc/podinfo readOnly: false volumes

    1.4K10编辑于 2022-06-27
  • 来自专栏WalkingCloud

    CentOS7中配置LVM精简卷(Thinly-Provisioned Logical Volumes)

    LVM精简卷(Thinly-Provisioned Logical Volumes)的概念: As of the Red Hat Enterprise Linux 6.4 release , logical volumes can be thinly provisioned. This allows you to create logical volumes that are larger than the available extents. documentation/en-us/red_hat_enterprise_linux/6/html/logical_volume_manager_administration/thinprovisioned_volumes

    5.5K00发布于 2019-11-12
领券