Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
I
init
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
init
Commits
cf124413
Commit
cf124413
authored
Apr 26, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
custom docker dir
parent
e4a45c67
Pipeline
#12065
failed with stage
in 10 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
defaults/main.yml
defaults/main.yml
+1
-0
tasks/docker.yml
tasks/docker.yml
+5
-2
templates/daemon.json.j2
templates/daemon.json.j2
+1
-2
No files found.
defaults/main.yml
View file @
cf124413
...
@@ -32,3 +32,4 @@ railgun:
...
@@ -32,3 +32,4 @@ railgun:
laptop
:
false
laptop
:
false
extra_params
:
[]
extra_params
:
[]
nfs
:
false
nfs
:
false
docker_root
:
/var/lib/docker
tasks/docker.yml
View file @
cf124413
...
@@ -107,11 +107,14 @@
...
@@ -107,11 +107,14 @@
url
:
'
https://cdn02.moecube.com:444/init/docker-compose-linux-{{ansible_architecture}}'
url
:
'
https://cdn02.moecube.com:444/init/docker-compose-linux-{{ansible_architecture}}'
dest
:
'
{{ansible_user_dir}}/.docker/cli-plugins/docker-compose'
dest
:
'
{{ansible_user_dir}}/.docker/cli-plugins/docker-compose'
mode
:
'
0755'
mode
:
'
0755'
-
name
:
docker
配置
创建目录
-
name
:
docker 创建目录
become
:
true
become
:
true
file
:
file
:
name
:
/etc/docker
name
:
'
{{item}}'
state
:
directory
state
:
directory
with_items
:
-
'
/etc/docker'
-
'
{{docker_root}}'
-
name
:
docker 配置
-
name
:
docker 配置
become
:
true
become
:
true
template
:
template
:
...
...
templates/daemon.json.j2
View file @
cf124413
{
{
{% if registry %}
{% if registry %}
"registry-mirrors": [
"registry-mirrors": [
"{{registry}}"
"{{registry}}"
],
],
{% endif %}
{% endif %}
{% if nvidia_driver_version and ansible_os_family == 'Debian' %}
{% if nvidia_driver_version and ansible_os_family == 'Debian' %}
"runtimes": {
"runtimes": {
"nvidia": {
"nvidia": {
...
@@ -15,6 +13,7 @@
...
@@ -15,6 +13,7 @@
}
}
},
},
{% endif %}
{% endif %}
"data-root": "{{docker_root}}",
"live-restore": true,
"live-restore": true,
"log-driver": "json-file",
"log-driver": "json-file",
"log-opts": {
"log-opts": {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment