From bbbbf3cb5d4061cb7c70c6c21b18d5f583a34b97 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Fri, 23 Jun 2017 11:28:16 +0100 Subject: [PATCH] sshd: sync bind mounts with getty container This adds all the binds from pkg/getty/Dockerfile to pkg/sshd/Dockerfile and retains the existing /root/.ssh and /etc/resolv.conf binds. With this `dist` and `ctr` function in a ssh session. Signed-off-by: Ian Campbell --- pkg/sshd/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sshd/Dockerfile b/pkg/sshd/Dockerfile index 6f5bccfc4..ad6889148 100644 --- a/pkg/sshd/Dockerfile +++ b/pkg/sshd/Dockerfile @@ -20,4 +20,4 @@ COPY etc/ /etc/ COPY usr/ /usr/ RUN mkdir -p /etc/ssh /root/.ssh && chmod 0700 /root/.ssh CMD ["/sbin/tini", "/usr/bin/ssh.sh"] -LABEL org.mobyproject.config='{"pid": "host", "binds": ["/tmp:/tmp", "/root/.ssh:/root/.ssh", "/etc/resolv.conf:/etc/resolv.conf"], "capabilities": ["all"]}' +LABEL org.mobyproject.config='{"pid": "host", "binds": ["/root/.ssh:/root/.ssh", "/etc/resolv.conf:/etc/resolv.conf", "/run:/run", "/tmp:/tmp", "/etc:/hostroot/etc", "/usr/bin/ctr:/usr/bin/ctr", "/usr/bin/runc:/usr/bin/runc", "/usr/bin/dist:/usr/bin/dist", "/var:/var","/containers:/containers","/dev:/dev","/sys:/sys"], "capabilities": ["all"]}'