docker生成的ubuntu的root的登陆密码怎么获取呢?
迷茫
迷茫 2017-04-26 09:01:20
0
3
868

容器ubuntu的密码是随机的,但是我想知道这个密码是什么还有怎么改,网上搜了很多都没有解决···求帮助

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(3)
淡淡烟草味

Obtaining this password should be meaningless to you. You do not need to use this password to log in, and the image does not contain the sshd service, so you cannot log in through ssh. You can use docker exec -it <container_name> /bin/bash directly from the host to enter bash inside the container

Peter_Zhu

Looking at your Dockerfile

曾经蜡笔没有小新

RUN echo "root:password" | chpasswd

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!