Init container:
Container start:
Attach to started container:
Init repo:
Install SSH server
Add user:
Enable 'su', set password for root:
Connect to SSH 10.0.75.2:2222
> docker run -it -v c:/work:/work -p 8080:80 -p 2222:22 debian bash
Container start:
> docker start <container name>
Attach to started container:
> docker attach <container name>
Init repo:
# apt-get update
# apt-get upgrade
Install SSH server
# apt-get install openssh-server
# /etc/init.d/ssh start
Add user:
# useradd -s /bin/bash -m -d /home/<user name> <user name>
# passwd <user name>
Enable 'su', set password for root:
# passwd root
Connect to SSH 10.0.75.2:2222
Комментариев нет:
Отправить комментарий