add /etc/hostname mapping for assign-account
[why] the hostname is needed when execute ssh-keygen to generate ras public/private key with -C option in the container %x(ssh-keygen -f "#{ssh_dir}/id_rsa" -N '' -C "#{login_name}@#{hostname}")
[how] add file mapping for file /etc/hostname
Signed-off-by: Luan Shengde shdluan@163.com --- container/assign-account/start | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/container/assign-account/start b/container/assign-account/start index 2290982..379dbd3 100755 --- a/container/assign-account/start +++ b/container/assign-account/start @@ -14,6 +14,8 @@ cmd=( -v /etc/passwd:/etc/passwd:ro -v /etc/group:/etc/group:ro -v /srv/account-info:/opt/account_data/:rw + -v /etc/hostname:/etc/hostname:ro + -v /etc/localtime:/etc/localtime:ro -v /home:/home:rw -p 29999:29999 assign-account
On Thu, Nov 12, 2020 at 11:27:36AM +0800, Wu Fengguang wrote:
On Thu, Nov 12, 2020 at 10:11:28AM +0800, Luan Shengde wrote:
add /etc/hostname mapping for assign-account
ok, I will use the host name directly
Thanks, Luan Shengde
Why not just use the jumper's host name account-vm?
Thanks, Fengguang