Docker 설정 확인
Docker info 를 통해서 docker 가 설치된 자원에 세부 설명을 확인.
$ docker info
output
Client:
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc., 0.0.0+unknown)
Server:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 9
Server Version: 20.10.23
Storage Driver: overlay2
Backing Filesystem: xfs
Supports d_type: true
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 1e1ea6e986c6c86565bc33d52e34b81b3e2bc71f
runc version: f19387a6bec4944c770f7668ab51c4348d9c2f38
init version: de40ad0
Security Options:
seccomp
Profile: default
Kernel Version: 5.10.186-179.751.amzn2.x86_64
Operating System: Amazon Linux 2
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 14.63GiB
Name: ip-1-1-1-1.ap-northeast-2.compute.internal
ID: B7DG:KXAS:UXYU:U6YC:CUAN:F5BY:BNQM:XKNW:5JGE:C2B4:QP3S:K57S
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Registry 서버를 내부 registry를 바라보도록 설정
/etc/docker/daemon.json 세팅 파일에 아래 내용을 추가 해준다. 없으면 생성해 넣으면 된다.
{
"registry-mirrors": ["https://my-docker-repo-mirror.my.company.com"]
}
참고
Docker hub mirror url 세팅 (docker 19.03.3 이후 버전에서 동작 확인)
ref: https://docs.docker.com/registry/recipes/mirror/#configure-the-docker-daemon.
'Docker' 카테고리의 다른 글
[docker] M1 Mac docker 설치 (0) | 2024.02.06 |
---|