diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2018-05-28 19:33:43 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2018-05-28 19:33:43 +0000 |
commit | 5ec8f5ba191a8d81e2271b80c8c7993550f57519 (patch) | |
tree | f0d1a00fa04b5f6cbd23a2027247abb09d9fccf2 /start-container-qemu.sh | |
parent | 26f2fc8da2e01dd784a81a9495de7bb4136d2bd7 (diff) |
Add -H :2375 to remote docker commands.
A previous patch replaced
docker $host:2375 cmd
with
ssh $host cmd
but this needs to be replaced with
ssh $host -H :2375 cmd
Change-Id: I40c58c466b1d3d20a9979205f63f11acb8f864ed
Diffstat (limited to 'start-container-qemu.sh')
-rwxr-xr-x | start-container-qemu.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/start-container-qemu.sh b/start-container-qemu.sh index e007cefe..cbb042ab 100755 --- a/start-container-qemu.sh +++ b/start-container-qemu.sh @@ -54,7 +54,7 @@ nfsroot="/tmp/nfsroot" container_exec sudo mkdir "$nfsroot" container_exec sudo rsync -a --one-file-system / $nfsroot/ -nfsip=$(ssh $host docker inspect --format {{.NetworkSettings.IPAddress}} "$container_id") +nfsip=$(ssh $host docker -H :2375 inspect --format {{.NetworkSettings.IPAddress}} "$container_id") # Start NFS server inside container. # Note, for NFS server to work inside container kernel should have @@ -102,7 +102,7 @@ remote_exec "$host:$port:/:-f -Snone" \ -device virtio-net-device,netdev=unet \ -s > ${prefix}qemu.log 2>&1 -qemu_port=$(ssh $host docker port $container_id 2222 | cut -d: -f 2) +qemu_port=$(ssh $host docker -H :2375 port $container_id 2222 | cut -d: -f 2) ret=0 wait_for_ssh_server $host $qemu_port || ret=$? |