use this command to bring up the container: ; provide httpd service docker run --name centos67 -h centos67 -it -d -p 192.168.0.73:8083:80 apox0/centos67 bash ; provide httpd and sshd service docker run --name centos67 -h centos67 -it -d -p 192.168.0.73:8083:80 -p 192.168.0.73:1022:22 apox0/centos67 bash Ctrl P+Q quit, Ctrl C exit
use this command to attach to the container: dd attach centos67 /etc/init.d/httpd start yum install openssh-server /etc/init.d/sshd start
; connect it from remote: ssh -p 1022 192.168.0.73 -l root ; make sure you have root password set at the host.
tag: minimal is the container image converted from centos6.7 minimal ISO.
Content type
Image
Digest
Size
107.8 MB
Last updated
almost 11 years ago
docker pull apox0/centos67:httpd