Advanced Search
Search Results
12 total results found
Common Packages
#ping apt install inetutils-ping #nslookup apt install dnsutils #ifconfig apt install net-tools #ip apt install iproute2 #curl apt install curl
Common Commands
Get Container Running Containersdocker ps All Containersdocker ps -a Inspect Container docker inspect foo Get Tail Logs docker logs --tail 100 xxx Get Mounts Info docker inspect foo | grep -A 10 -i mounts "Mounts": [ { "Type": "bind", ...
Crictl
Delete Unused Images crictl rmi --prune
Multi Architecture Image
Errors standard_init_linux.go:211: exec user process caused "exec format error" Merge Manifest Pipeline set +e export DOCKER_CLI_EXPERIMENTAL="enabled"; function create(){ docker manifest create --amend registry.example.com/${REGISTRY_PROJECT_NAME}/${IM...
Skopeo
Get Image Manifests docker.io skopeo inspect --raw docker://fluent/fluent-bit:3.2.1 registry.example.com skopeo inspect --raw docker://registry.example.com/fluent/fluent-bit:3.2.1 Manifest Example { "schemaVersion": 2, "mediaType": "application/vnd.doc...
Bridge Network
Background 客户在 K8s 的容器中调用飞书的 Webhook API。 这个接口是由外部的网关代理的,这个网关有 IP 白名单,需要添加集群中的所有节点 IP。 宿主机 IP Question容器里面调用外部网关,这个 IP 是容器 IP 还是宿主机 IP ? 这个要看你的网络模式,一般有下面几种情况: 默认(bridge 模式) 容器会有独立的内部 IP,比如 172.x.x.x, 宿主机会做 NAT 转发,外部看到的就是宿主机 IP。 所以网关看到的 IP 是宿主机的 IP。 host ...
Docker Proxy
192.168.80.9 在机器上,5433 端口使用 dokcer-proxy 转发到了 pg 容器的 5432 端口。 lsof -i :5433 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME docker-pr 2016 root 4u IPv6 178789003 0t0 TCP *:pyrrho (LISTEN) ps aux | grep 2016 root 2016 0.1 0.0 1...
Docker Pull/Build with VPN
TIP为什么 VPN 在 docker pull 的时候生效,但在 build 的时候不生效 这个问题的根本原因在于 Docker 架构 和 网络流量的路由方式。以下是导致这种现象的详细分析和可能的解决方案: Docker Pull 和 Docker Build 的网络区别** docker pull 的行为 docker pull 是直接由宿主机(host)上的 Docker 客户端发起的请求,流量直接通过宿主机的网络堆栈。 如果你在宿主机上配置了 VPN(比如全局代理),流量会自动走 VPN。 因为请求...
Load Nexus Images
import requests import json --- ## Nexus 服务器的 URL 和凭据 NEXUS_URL = "https://nexus.example.com" NEXUS_USERNAME = "foo" NEXUS_PASSWORD = "foo" --- ## 要查询的仓库名称 REPOSITORY_NAME = "bar" --- ## 输出文件名 OUTPUT_FILE = "nexus_images-test.json" def list_nexus_images...
Exec Format Error
Image architecture(x86/arm64) not match. exec /run.sh: exec format error
Failed to Extract Layer
Errors FATA[0006] failed to extract layer sha256:d2d4d2c16a00dd998866a33049d4a1801ba34b719f377ffdf3ec7ae78c9b03eb: lstat /var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/566/fs/var/cache/dnf/update-e8b0d229956b0b0b: not a directory: unknow...
Alpine No Bash
Errors 因为 alpine 没有 bash ,会报 no such file docker run --rm -it \ -v $PWD:/ansible \ -w /ansible \ willhallonline/ansible:2.9.27-alpine-3.16 \ ./deploy.sh 8.138.36.150 kubectl exec ./deploy.sh: no such file or directory 使用 /bin/sh #!/bin/sh