This ubuntu has the same rsa information about root account.
323
This ubuntu has the same rsa information about root account.
###1.Starting two Ubuntu containers.
docker run
docker network create ubuntu-1604_default
docker run -d -h ubuntu1 --name ubuntu1 --net ubuntu-1604_default modenaf360/ubuntu-1604
docker run -d -h ubuntu2 --name ubuntu2 --net ubuntu-1604_default modenaf360/ubuntu-1604
or, docker-compose
docker-compose up -d
example docker-compose
version: '2'
services:
ubuntu1:
image: modenaf360/ubuntu-1604:latest
hostname: ubuntu1
container_name: ubuntu1
environment:
USER: 'groot'
USER_PW: 'iamgroot'
ubuntu2:
image: modenaf360/ubuntu-1604:latest
hostname: ubuntu2
container_name: ubuntu2
environment:
USER: 'groot'
USER_PW: 'iamgroot'
###2. Check ssh move between two containers using root account without password
docker exec -it ubuntu1 /bin/bash
->
ssh root@ubuntu2
###3. Confirm account creation
su groot
Content type
Image
Digest
Size
182.8 MB
Last updated
over 7 years ago
docker pull modenaf360/ubuntu-1604