小编tor*_*rce的帖子

Julia集群使用docker

我正在尝试使用默认的SSHManager连接到docker容器.这些容器只有一个正在运行的sshd,具有公钥认证和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
Run Code Online (Sandbox Code Playgroud)

我使用以下命令运行容器:

sudo docker run -d -p 3333:22 -it --name julia-sshd julia-sshd
Run Code Online (Sandbox Code Playgroud)

然后在主机上,使用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.
Run Code Online (Sandbox Code Playgroud)

我已经测试过我可以通过ssh连接到容器而无需密码.

我还测试了在julia repl中我可以添加一个安装了julia的常规机器到集群,它工作正常.

但我无法让这两件事情共同发挥作用.任何帮助或建议都会被贬低.

julia docker

7
推荐指数
1
解决办法
330
查看次数

标签 统计

docker ×1

julia ×1