随笔分类 -  Docker

摘要:一、solace https://www.solace.dev/ solace是一款高性能的消息中间件 二、部署脚本 docker run -d \ -p 8080:8080 \ -p 55555:55555 \ -p:8008:8008 \ -p:1883:1883 \ -p:8000:8000 阅读全文
posted @ 2025-09-30 15:59 代码诠释的世界 阅读(14) 评论(0) 推荐(0)
摘要:一、官网 https://min.io/download?license=agpl&platform=linux 二、github https://github.com/minio/minio 三、安装方法 1、基于docker docker run -d --name minio -p 9000: 阅读全文
posted @ 2025-07-09 15:47 代码诠释的世界 阅读(237) 评论(0) 推荐(0)
摘要:以下是批量删除 Docker Volume 的三种常用方法,综合多个来源整理: 1. ‌清理所有未使用的 Volume(推荐安全操作)‌ docker volume prune ‌作用‌:仅删除未被任何容器引用的 Volume,避免误删活跃数据。 ‌流程‌:执行后需输入 y 确认删除。 ‌适用场景‌ 阅读全文
posted @ 2025-06-06 17:40 代码诠释的世界 阅读(125) 评论(0) 推荐(0)
摘要:一、前提 默认已经安装好sonarqube服务器,并创建好测试项目 参考:https://www.cnblogs.com/fireblackman/p/18834448 二、官网 SonarScanner CLI | SonarQube Server Documentation sonarsourc 阅读全文
posted @ 2025-04-24 15:13 代码诠释的世界 阅读(365) 评论(0) 推荐(0)
摘要:一、问题 拉取一个python3.10-slim镜像报错ERROR [internal] load metadata for docker.io/v1/xxx“的问题 二、编辑镜像源 vm /etc/docker/daemon.json添加registry-mirrors配置{ "registry- 阅读全文
posted @ 2024-12-09 20:37 代码诠释的世界 阅读(1499) 评论(0) 推荐(0)
摘要:一、官网 https://docs.docker.com/compose/install/ 二、命令介绍 $ docker-compose --help Define and run multi-container applications with Docker. Usage: docker-co 阅读全文
posted @ 2024-12-09 19:49 代码诠释的世界 阅读(492) 评论(0) 推荐(0)
摘要:一、场景 新的机器,安装部署docker之后,启动编译后程序报错 二、解决办法 加上之后重新start容器,然后程序可以正常运行 参考链接: https://blog.csdn.net/LeeKitch/article/details/127927188 阅读全文
posted @ 2024-07-09 15:08 代码诠释的世界 阅读(591) 评论(0) 推荐(1)
摘要:一、安装 # 步骤1: 更新软件包列表 sudo apt update # 步骤2: 安装Docker sudo apt install docker.io # 步骤3: 安装NVIDIA Docker runtime distribution=$(. /etc/os-release;echo $I 阅读全文
posted @ 2024-05-16 17:09 代码诠释的世界 阅读(2889) 评论(0) 推荐(0)
摘要:1、官方安装方法 https://docs.docker.com/engine/install/ubuntu/ 阅读全文
posted @ 2024-05-16 15:59 代码诠释的世界 阅读(79) 评论(0) 推荐(0)
摘要:方法1: docker container top 方法2: docker container inspect 方法3: 查看cgroup.procs 阅读全文
posted @ 2024-04-17 15:57 代码诠释的世界 阅读(395) 评论(0) 推荐(0)
摘要:一、场景 由于自动化测试需要依赖一些环境, 比如docker的容器是否在运行 二、 解决办法 方法1 #!/bin/bash if [[ -n $(docker ps -q -f "name=^容器名称$") ]];then echo "容器存在" else echo "容器不存在" fi 方法2 阅读全文
posted @ 2023-10-18 11:03 代码诠释的世界 阅读(675) 评论(0) 推荐(0)
摘要:1、官网 Welcome - Portainer Documentation 参考链接: portainer安装,配置,使用 - Net码畜 - 博客园 阅读全文
posted @ 2023-07-26 16:24 代码诠释的世界 阅读(16) 评论(0) 推荐(0)
摘要:1、场景 测试过程中,有时候需要修改系统时间,以验证相关记录为后端时间记录 2、解决方法 启动docker的时候加如下参数 --privileged=true 3、修改时间 可以使用date修改 date -s "2023-05-23 10:00:00" 4、遇到的问题 问题1、普通用户无权限 % 阅读全文
posted @ 2023-05-23 11:01 代码诠释的世界 阅读(998) 评论(0) 推荐(0)
摘要:1、官网 官网http://www.squid-cache.org/linux 2、代理服务器 正向代理:客户端(内网) >squid >服务器centos 反向代理:服务器 >squid >客户端(内网) 3、dockerhub https://hub.docker.com/r/ubuntu/sq 阅读全文
posted @ 2022-10-25 22:51 代码诠释的世界 阅读(4787) 评论(0) 推荐(2)
摘要:1、官网 https://sonic-cloud.gitee.io/#/Deploy 2、github https://github.com/SonicCloudOrg 3、下载 https://download.sonic-cloud.wiki/sonic/sonic-server/v1.5.0- 阅读全文
posted @ 2022-09-16 13:20 代码诠释的世界 阅读(562) 评论(0) 推荐(0)
摘要:1、 kubeasz https://github.com/easzlab/kubeasz 2、文档 https://github.com/easzlab/kubeasz/tree/master/docs 3、quickstart https://github.com/easzlab/kubeasz 阅读全文
posted @ 2022-09-07 18:04 代码诠释的世界 阅读(1165) 评论(0) 推荐(0)
摘要:1、 创建命令空间 kubectl create namespace test 2、编辑 nginx-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: nginx namespace: test labels: 阅读全文
posted @ 2022-08-29 16:48 代码诠释的世界 阅读(1729) 评论(0) 推荐(0)
摘要:1、dashboard官网 https://github.com/kubernetes/dashboard/releases 2、安装(k8s-v1.23.1) kubernetes-dashboard.yaml apiVersion: v1 kind: Secret metadata: label 阅读全文
posted @ 2022-08-29 16:20 代码诠释的世界 阅读(765) 评论(0) 推荐(0)
摘要:1、官网 https://kubernetes.io/zh-cn/ 2、github https://github.com/kubernetes/kubernetes 3、文档 Kubernetes Documentation | Kubernetes 二进制下载 Download Kubernet 阅读全文
posted @ 2022-08-29 11:38 代码诠释的世界 阅读(1166) 评论(0) 推荐(0)
摘要:1、docker hub https://hub.docker.com/r/alfg/nginx-rtmp/ 2、安装 docker pull alfg/nginx-rtmp docker run -it -p 1935:1935 -p 8080:80 --rm nginx-rtmp 测试关闭后删除 阅读全文
posted @ 2022-08-23 15:47 代码诠释的世界 阅读(1161) 评论(0) 推荐(0)