diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2017-05-04 11:18:23 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2017-05-04 11:18:23 +0000 |
commit | a7c1800890f7fcd67204f95c562f09d8c988b273 (patch) | |
tree | 4038301bd3d85a568f863e39a3e442b4e08c0d3b /start-container-docker.sh | |
parent | 8093c69c5b3306d1b941ec191d3180460a94a98c (diff) |
start-container-docker: Create directory on the right host.
When creating test containers (which, arguably, should not have
bind-mounts altogether) we run the script on the build host,
while creating container on the remote host.
Change-Id: If251dff04f076572c9b6786809c3d44f32b6b65e
Diffstat (limited to 'start-container-docker.sh')
-rwxr-xr-x | start-container-docker.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/start-container-docker.sh b/start-container-docker.sh index b512b6f5..007d768d 100755 --- a/start-container-docker.sh +++ b/start-container-docker.sh @@ -189,7 +189,7 @@ for bind_mount in "${bind_mounts[@]}"; do # If a host bind-mount dir doesn't exist, then docker creates it on # the host with root:root owner, which can't be removed by cleanup job. dir="${bind_mount%%:*}" - mkdir -p "$dir" + ssh $session_host mkdir -p "$dir" bind_mounts_opt=("${bind_mounts_opt[@]}" "-v" "$bind_mount") done |