Commit e176027
committed
socket: try removing is socket-location is a directory
Due to race-conditions between containers starting and the Docker
remote API being up, containers bind-mounting the docker-socket may
cause the socket-path to be created as a directory.
This patch will attempt to remove the directory in such situations.
Removing will fail if the directory is not empty.
Signed-off-by: Sebastiaan van Stijn <[email protected]>1 parent c833fcd commit e176027
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
82 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
| |||
0 commit comments