使用docker的Julia群集

我正尝试使用默认的SSHManager连接到docker容器。 这些容器只有一个正在运行的sshd,使用公钥authentication,并且安装了julia。

这是我的dockerfile:

FROM rastasheep/ubuntu-sshd RUN apt-get update && apt-get install -y julia RUN mkdir -p /root/.ssh ADD id_rsa.pub /root/.ssh/authorized_keys 

我正在运行容器使用:

 sudo docker run -d -p 3333:22 -it --name julia-sshd julia-sshd 

然后在主机上,使用julia repl,我得到以下错误:

 julia> import Base:SSHManager julia> addprocs(["root@localhost:3333"]) stdin: is not a tty Worker 2 terminated. ERROR (unhandled task failure): EOFError: read end of file Master process (id 1) could not connect within 60.0 seconds. exiting. 

我已经testing过,我可以通过SSH连接到容器没有密码。

我也testing过,在茱莉亚repl我可以添加一个普通的机器与茱莉亚安装到群集,它工作正常。

但是我不能把这两件事合在一起。 任何帮助或build议将被认为是。

Interesting Posts