Default to not mounting docker socket in exec
When running `forgejo-runner exec`, default to not mounting anything in the job container instead of mounting /var/run/docker.sock. This mirrors the behavior of the docker_host config value If mounting a docker socket in the job container is desired, the user can use --container-daemon-socket
This commit is contained in:
parent
f48e9b3ba6
commit
eca5e67c0b
2 changed files with 1 additions and 4 deletions
|
|
@ -86,9 +86,6 @@ func (c Config) GetToken() string {
|
|||
}
|
||||
|
||||
func (c *Config) GetContainerDaemonSocket() string {
|
||||
if c.ContainerDaemonSocket == "" {
|
||||
return "/var/run/docker.sock"
|
||||
}
|
||||
return c.ContainerDaemonSocket
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue