Public | Automated Build

Last pushed: 4 months ago
Short Description
centos docker with sshd
Full Description

centos-sshd

  1. Run the centos-sshd on docker with docker containerizers

     (1) centos 6.7, without systemd
    
     docker run -d -p 2022:22 mesosinfo/centos-sshd:6.7
    
     (2) centos 7.3 , with systemd
    
     docker run -it -d \
            -p 2022:22 \
            --hostname=centos-sshd
            --privileged \
            --restart=always \
            --name=centos-sshd \
            -v /var/run/docker.sock:/var/run/docker.sock \
            -v /sys/fs/cgroup:/sys/fs/cgroup:ro \
            mesosinfo/centos-sshd:7.3 /usr/sbin/init
    
  2. Client connect the container by ssh

    ssh -p 2022 root@192.168.111.15
    ssh root@172.200.1.5

    user:root
    password:rootroot

Docker Pull Command
Owner
mesosinfo
Source Repository

Comments (0)