Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

12 total results found

Common Packages

Docker Dockerfile

#ping apt install inetutils-ping #nslookup apt install dnsutils #ifconfig apt install net-tools #ip apt install iproute2 #curl apt install curl

docker
dockerfile

Common Commands

Docker Manual

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", ...

commands
docker

Crictl

Docker Manual

Delete Unused Images crictl rmi --prune

crictl
docker

Multi Architecture Image

Docker Manual

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...

manifest
docker

Skopeo

Docker Manual

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...

skopeo
manifest
docker

Bridge Network

Docker Networking

Background 客户在 K8s 的容器中调用飞书的 Webhook API。 这个接口是由外部的网关代理的,这个网关有 IP 白名单,需要添加集群中的所有节点 IP。 宿主机 IP Question容器里面调用外部网关,这个 IP 是容器 IP 还是宿主机 IP ? 这个要看你的网络模式,一般有下面几种情况: 默认(bridge 模式) 容器会有独立的内部 IP,比如 172.x.x.x, 宿主机会做 NAT 转发,外部看到的就是宿主机 IP。 所以网关看到的 IP 是宿主机的 IP。 host ...

bridge
network
docker

Docker Proxy

Docker Networking

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...

proxy
docker

Docker Pull/Build with VPN

Docker Networking

TIP为什么 VPN 在 docker pull 的时候生效,但在 build 的时候不生效 这个问题的根本原因在于 Docker 架构 和 网络流量的路由方式。以下是导致这种现象的详细分析和可能的解决方案: Docker Pull 和 Docker Build 的网络区别** docker pull 的行为 docker pull 是直接由宿主机(host)上的 Docker 客户端发起的请求,流量直接通过宿主机的网络堆栈。 如果你在宿主机上配置了 VPN(比如全局代理),流量会自动走 VPN。 因为请求...

vpn
docker

Load Nexus Images

Docker Scripts

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...

image
nexus
docker

Exec Format Error

Docker Troubleshooting

Image architecture(x86/arm64) not match. exec /run.sh: exec format error

image
docker

Failed to Extract Layer

Docker Troubleshooting

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...

overlay
containerd
nerdctl
image
docker

Alpine No Bash

Docker Troubleshooting

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

alpine
docker