2017년 8월 4일 금요일

Docker 옵션.

사용중인 옵션을 정리해 본다.


1. --insecure-registry


   private registry 서버를 사용할 때.


2. -g


   Docker image 저장 경로를 변경하고 싶을 때.


3. 예제


  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# /etc/sysconfig/docker
#
# Other arguments to pass to the docker daemon process
# These will be parsed by the sysv initscript and appended
# to the arguments list passed to docker -d
 
other_args="-g /home/ships/docker/ --insecure-registry 192.168.1.100:5000"
DOCKER_CERT_PATH=/etc/docker
 
# Resolves: rhbz#1176302 (docker issue #407)
DOCKER_NOWARN_KERNEL_VERSION=1
 
# Location used for temporary files, such as those created by
# # docker load and build operations. Default is /var/lib/docker/tmp
# # Can be overriden by setting the following environment variable.
# # DOCKER_TMPDIR=/var/tmp
cs

댓글 없음:

댓글 쓰기