Docker:修订间差异
来自康健生活
| 第9行: | 第9行: | ||
gpasswd -a $USER docker</syntaxhighlight>|$|/home/kangkk}} | gpasswd -a $USER docker</syntaxhighlight>|$|/home/kangkk}} | ||
== docker.sock == | == docker.sock == | ||
如果 docker.sock 没有生效,可能会输出如下信息。 | |||
{{Shc_out|<syntaxhighlight lang="bash"> | {{Shc_out|<syntaxhighlight lang="bash"> | ||
curl -s --unix-socket /var/run/docker.sock http:/containers/json | jq .</syntaxhighlight>|<syntaxhighlight lang="bash"> | curl -s --unix-socket /var/run/docker.sock http:/containers/json | jq .</syntaxhighlight>|<syntaxhighlight lang="bash"> | ||
| 第15行: | 第16行: | ||
} | } | ||
</syntaxhighlight>|$|/home/kangkk}} | </syntaxhighlight>|$|/home/kangkk}} | ||
正常信息如下 | |||
<pre> | |||
[ | |||
{ | |||
"Id": "b94a464760c7ef1f63486500b8e1f24c34ae934b6dac02d19336850faef8a543", | |||
"Names": [ | |||
"/runner1" | |||
], | |||
"Image": "drone/drone-runner-docker:1", | |||
"ImageID": "sha256:37113502465f8d42b091f08e7e25b48c613918ba810703565d0e59cd81d9c4d0", | |||
"Command": "/bin/drone-runner- | |||
... | |||
"RW": true, | |||
"Propagation": "rprivate" | |||
}, | |||
{ | |||
"Type": "bind", | |||
"Source": "/var/www/cii.qiwoo.org/log", | |||
"Destination": "/var/log/nginx", | |||
"Mode": "rw", | |||
"RW": true, | |||
"Propagation": "rprivate" | |||
} | |||
] | |||
} | |||
]</pre> | |||
== 参数 == | == 参数 == | ||