티스토리 뷰
반응형
- Create a systemd drop-in directory for the docker service:
- $ sudo mkdir -p /etc/systemd/system/docker.service.d
- Create a file named /etc/systemd/system/docker.service.d/http-proxy.conf that adds the HTTP_PROXY environment variable:If you are behind an HTTPS proxy server, set the HTTPS_PROXY environment variable:Multiple environment variables can be set; to set both a non-HTTPS and a HTTPs proxy;
- [Service] Environment="HTTP_PROXY=http://proxy.example.com:80" Environment="HTTPS_PROXY=https://proxy.example.com:443"
- [Service] Environment="HTTPS_PROXY=https://proxy.example.com:443"
- [Service] Environment="HTTP_PROXY=http://proxy.example.com:80"
- If you have internal Docker registries that you need to contact without proxying you can specify them via the NO_PROXY environment variable.
- IP address prefix (1.2.3.4)
- Domain name, or a special DNS label (*)
- A domain name matches that name and all subdomains. A domain name with a leading “.” matches subdomains only. For example, given the domains foo.example.com and example.com:
- example.com matches example.com and foo.example.com, and
- .example.com matches only foo.example.com
- A single asterisk (*) indicates that no proxying should be done
- Literal port numbers are accepted by IP address prefixes (1.2.3.4:80) and domain names (foo.example.com:80)
- [Service] Environment="HTTP_PROXY=http://proxy.example.com:80" ##Environment="HTTPS_PROXY=https://proxy.example.com:443" -> TLS Error 발생하여 주석처리 하고 정상 작동 Environment="NO_PROXY=localhost,127.0.0.1,docker-registry.example.com,.corp"
- The NO_PROXY variable specifies a string that contains comma-separated values for hosts that should be excluded from proxying. These are the options you can specify to exclude hosts:
- Flush changes and restart Docker
- $ sudo systemctl daemon-reload $ sudo systemctl restart docker
- Verify that the configuration has been loaded and matches the changes you made, for example:
- $ sudo systemctl show --property=Environment docker Environment=HTTP_PROXY=http://proxy.example.com:80 HTTPS_PROXY=https://proxy.example.com:443 NO_PROXY=localhost,127.0.0.1,docker-registry.example.com,.corp
반응형
'linux' 카테고리의 다른 글
httpd IndexOptions (0) | 2022.03.01 |
---|---|
tcpdump 예제 (0) | 2022.02.16 |
tcp port check (0) | 2022.01.30 |
리눅스 파일 시스템 동기화 lsync (0) | 2021.11.05 |
quotas to glusterfs (0) | 2021.10.29 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- nutanix rac
- 특정 문구 치환
- ios ansible
- ansible ios
- 특정 라인삭제
- cisco ansible
- 리눅스 커맨드 로그남기기
- oracle linux8 kernel
- 윈도우서버 계정 관려
- 윈도우 cmd 계정 관리
- ipmi
- dl20 centos7
- chrony
- ansible network
- kernel 변경
- CentOS 7 GUI
- nxos ansible
- vm rac
- linux command log
- dl20 g9 centos7 설치
- dl20
- ILO
- centos7 ntp
- cgroup
- cmd로 윈도우 계정 관리
- DL20 GEN9 장비에 CentOS 7
- ISCSI 볼륨 RAC
- cmd로 계정 생성
- windows.old 강제삭제
- shell connmad log
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
글 보관함