Docker centos 7
תוכן עניינים |
כללי
https://hub.docker.com/_/centos/
http://www.slashroot.in/dockerfile-tutorial-building-docker-images-for-containers
centos 7 docker container
https://developer.fedoraproject.org/tools/docker/docker-images.html
centos 7 docker images
tutorial installing centos docker container
running os Container with Docker
Running our First Container with Docker
docker tutorial running full OS container
http://stackoverflow.com/questions/19332662/start-full-container-in-docker
Docker Explained: How To Create Docker Containers Running Memcached https://www.digitalocean.com/community/tutorials/docker-explained-how-to-create-docker-containers-running-memcached
http://www.tecmint.com/install-docker-and-learn-containers-in-centos-rhel-7-6/
Can't install httpd on docker centos7
vanila image X
https://hub.docker.com/_/centos/
docker pull centos:7
- to run and have local prompt
docker run -t -i centos:7
run as machine container
docker run -t -i centos:7 /sbin/init
hang!!
fail to start httpd
systemctl start httpd.service
Failed to get D-Bus connection: Operation not permitted
docker fail to start httpd Failed to get D-Bus connection: Operation not permitted
httpd and more image
https://hub.docker.com/r/naqoda/centos-apache-php/
not working
httpd image
https://hub.docker.com/r/feduxorg/centos-apache/
docker run -ti -v /sys/fs/cgroup:/sys/fs/cgroup:ro -v $PWD/ssl:/etc/ssl/apache/ -v $PWD/sites-enabled:/etc/httpd/sites-enabled -v /var/log/journal:/var/log/journal feduxorg/centos-apache
not working!!
ssh image
one
https://hub.docker.com/r/jdeathe/centos-ssh/ https://github.com/jdeathe/centos-ssh
docker pull jdeathe/centos-ssh
docker run -d \ --name ssh.pool-1.1.1 \ -p 2020:22 \ jdeathe/centos-ssh:centos-7
ssh 127.0.0.1 -p 2020
see password
docker logs ssh.pool-1.1.1
password login dont work!
curl -LSs \ https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant \ > id_rsa_insecure
chmod 600 id_rsa_insecure
ssh -p 2020 -i id_rsa_insecure app-admin@127.0.0.1
two harder to config
https://github.com/lloydbenson/docker-centos-7-sshd/blob/master/Dockerfile https://hub.docker.com/r/lloydbenson/docker-centos-7-sshd/
docker search centos
lloydbenson/docker-centos-7-sshd docker centos 7 sshd
docker pull lloydbenson/docker-centos-7-sshd docker run lloydbenson/docker-centos-7-sshd cat /etc/issue
docker run -dt --name=sshd lloydbenson/docker-centos-7-sshd
docker run -dt lloydbenson/docker-centos-7-sshd
docker run -dt lloydbenson/docker-centos-7-sshd -p 2020:22
docker run -d \ --name ssh.pool-1.1.1 \ -p 2020:22 \ jdeathe/centos-ssh:centos-7
- not work
docker run -e ROOT_PASS=true -dt --name=sshd lloydbenson/docker-centos-7-sshd
docker run -d --name="vtiger" -h vtiger -p 8080:80 -p 2122:22 mah454/vtiger "/run.sh"
ip_address=$(docker inspect --format 'תבנית:.NetworkSettings.IPAddress' vtiger) ssh -l root $ip_address -p 22