kubernetes: try and make exec-id unique

Hopefully hostname + local pid should be unlikely to clash.

Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
Ian Campbell 2017-09-27 17:00:26 +01:00
parent 1bdf0df8b6
commit c227c31e75

View File

@ -15,4 +15,4 @@ case $(uname -s) in
ijc25/alpine-ssh"
;;
esac
$ssh $sshopts -t root@"$1" ctr tasks exec --tty --exec-id ssh kubelet ash -l
$ssh $sshopts -t root@"$1" ctr tasks exec --tty --exec-id ssh-$(hostname)-$$ kubelet ash -l