此镜像基于官方【ubuntu:bionic】镜像构建,在官方镜像基础上安装了OpenSSH以及常用工具,安装指令如下:
镜像大小:87.25 MB
如何通过此镜像启动容器?
# 在安装有Docker引擎的服务器上运行
docker run -d --name uban2 --hostname my-uban2 -p 9022:22 softlang/ubuntu-ssh:latest
# 登录到容器,修改密码,默认=softlan9
docker exec -it 容器名/ID /bin/bash
passwd
# 退出容器 exit
# ssh 登录到 centos
ssh root@localhost -p 8022
Content type
Image
Digest
Size
90.1 MB
Last updated
over 5 years ago
docker pull softlang/ubuntu-ssh