This commit is contained in:
parent
70adc6dbf1
commit
29ccfea57a
@ -9,7 +9,7 @@ volumes:
|
|||||||
host:
|
host:
|
||||||
path: /mnt/drone/cache/go
|
path: /mnt/drone/cache/go
|
||||||
#Docker环境
|
#Docker环境
|
||||||
- name: docker
|
- name: dockersock
|
||||||
host:
|
host:
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
#Docker配置
|
#Docker配置
|
||||||
@ -28,7 +28,7 @@ steps:
|
|||||||
network_mode: host
|
network_mode: host
|
||||||
# 将宿主机的 docker和配置挂载到运行的 docker 容器中,那么在容器中运行 docker 命令时,等同于在宿主机中运行该docker 命令
|
# 将宿主机的 docker和配置挂载到运行的 docker 容器中,那么在容器中运行 docker 命令时,等同于在宿主机中运行该docker 命令
|
||||||
volumes:
|
volumes:
|
||||||
- name: docker
|
- name: docker_sock
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
- name: images
|
- name: images
|
||||||
path: /images
|
path: /images
|
||||||
|
Loading…
Reference in New Issue
Block a user