kubernetis 내부망으로 사용할때, 자꾸 외부에서 다운받으려 해서 내부 레포지토리를 사용하기 위해
프록시 설정을 해줘야 합니다..
# vi /lib/systemd/system/docker.service
서비스 부분에 아래 내용 추가
[Service]
Type=notify
# the default is not to use systemd for cgroups because the delegate issues still
# exists and systemd currently does not support the cgroup feature set required
# for containers run by docker
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
ExecReload=/bin/kill -s HUP $MAINPID
TimeoutStartSec=0
RestartSec=2
Restart=always
Environment="HTTP_PROXY=http://ip:3128"
Environment="HTTPS_PROXY=http://ip:3128"
Environment="NO_PROXY=jgshin.co.kr,localhost,127.0.0.1/8,192.168.0.0/16,.local"
https:// 가 아닌 https_proxy에 http로 하면 된다
# systemctl daemon-reload
# systemctl restart docker
'IT > 기타' 카테고리의 다른 글
mysql db 백업&복원 방법 (스크립트 포함) (0) | 2025.02.18 |
---|---|
ELK APM 톰캣 카탈리나 환경 변수 (config 포함) (0) | 2025.02.18 |
Docker 특정 image 주기 삭제 (스크립트 포함) (0) | 2025.02.18 |
Libre NMS 클라이언트 설정 (config 포함) (0) | 2025.02.18 |
Libre NMS 서버 설정 (config 포함) (0) | 2025.02.18 |