docker build -t ubuntu-ssh .
docker run -d -P --name ubuntu-ssh ubuntu-ssh
ADDRESS=`docker port ubuntu-ssh 22`
PORT=`echo $ADDRESS | cut -d: -f2`
ssh root@localhost -p $PORT
Content type
Image
Digest
Size
85.4 MB
Last updated
over 6 years ago
docker pull devopstestlab/ubuntu-ssh