Commit cf124413 authored by nanahira's avatar nanahira

custom docker dir

parent e4a45c67
Pipeline #12065 failed with stage
in 10 seconds
......@@ -32,3 +32,4 @@ railgun:
laptop: false
extra_params: []
nfs: false
docker_root: /var/lib/docker
......@@ -107,11 +107,14 @@
url: 'https://cdn02.moecube.com:444/init/docker-compose-linux-{{ansible_architecture}}'
dest: '{{ansible_user_dir}}/.docker/cli-plugins/docker-compose'
mode: '0755'
- name: docker 配置 创建目录
- name: docker 创建目录
become: true
file:
name: /etc/docker
name: '{{item}}'
state: directory
with_items:
- '/etc/docker'
- '{{docker_root}}'
- name: docker 配置
become: true
template:
......
{
{% if registry %}
"registry-mirrors": [
"{{registry}}"
],
{% endif %}
{% if nvidia_driver_version and ansible_os_family == 'Debian' %}
"runtimes": {
"nvidia": {
......@@ -15,6 +13,7 @@
}
},
{% endif %}
"data-root": "{{docker_root}}",
"live-restore": true,
"log-driver": "json-file",
"log-opts": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment