반응형
/etc/default/docker 파일을 열어서 아래와 같이 DOCKER_OPTS 항목을 추가해준다.
### /etc/default/docker # Docker Upstart and SysVinit configuration file # # THIS FILE DOES NOT APPLY TO SYSTEMD # # Please see the documentation for "systemd drop-ins": # https://docs.docker.com/engine/admin/systemd/ # # Customize location of Docker binary (especially for development testing). #DOCKERD="/usr/local/bin/dockerd" # Use DOCKER_OPTS to modify the daemon startup options. #DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4" # If you need Docker to use an HTTP proxy, it can also be specified here. #export http_proxy="http://127.0.0.1:3128/" # This is also a handy place to tweak where Docker's temporary files go. #export DOCKER_TMPDIR="/mnt/bigdrive/docker-tmp" DOCKER_OPTS="-g /data/docker"
docker daemon을 재시작 하면 반영된다.
반응형
'개발 > Docker' 카테고리의 다른 글
[Docker-compose] Image, Container 업데이트하기 (0) | 2018.09.10 |
---|---|
[Docker] http: server gave HTTP response to HTTPS client (0) | 2018.01.31 |
[Docker] container에 할당된 내부 ip확인하기 (0) | 2017.04.28 |
[Docker] docker-compose Timezone 지정하기 (0) | 2017.01.25 |
[Docker] docker-compose와 Dockerfile 볼륨 관리 (0) | 2017.01.25 |