Skip to content

Commit

Permalink
添加docker存储目录
Browse files Browse the repository at this point in the history
  • Loading branch information
lusyoe authored and gjmzj committed Aug 31, 2018
1 parent 37bcbbf commit 36d1034
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions roles/docker/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ LOG_DRIVER: "json-file"
LOG_LEVEL: "warn"
LOG_MAX_SIZE: "10m"
LOG_MAX_FILE: 3

# docker容器存储目录
STORAGE_DIR: "/var/lib/docker"
3 changes: 2 additions & 1 deletion roles/docker/templates/daemon.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
"log-opts": {
"max-size": "{{ LOG_MAX_SIZE }}",
"max-file": "{{ LOG_MAX_FILE }}"
}
},
"graph": "{{ STORAGE_DIR }}"
}

0 comments on commit 36d1034

Please sign in to comment.