20.01.2015

Docker auf Centos 7


Login as root
yum -y update
Das dauert etwas …
image image
yum -y install docker docker-registry
 image image
systemctl enable docker.service
systemctl start docker.service
systemctl status docker.service
systemctl status docker.service 
YACY – als pull vom Repository holen
docker pull mcsaky/yacy
____________
FROM centos

MAINTAINER mcsaky <mihai.csaky@sysop-consulting.ro>

RUN yum -y update

RUN yum install -y --nogpgcheck java-1.7.0-openjdk tar wget which sed; yum clean all

RUN wget http://yacy.net/release/yacy_v1.72_20140506_9000.tar.gz -P /opt/; gunzip /opt/yacy_v1.72_20140506_9000.tar.gz

RUN tar -C /opt -xvf /opt/yacy_v1.72_20140506_9000.tar ; rm /opt/yacy_v1.72_20140506_9000.tar

RUN sed -i '/adminAccount=/c\adminAccount=admin:docker' /opt/yacy/defaults/yacy.init


RUN echo 'wait $!'  >> /opt/yacy/startYACY.sh

EXPOSE 8090

CMD /opt/yacy/startYACY.sh

___________________________________________

docker pull mcsaky/yacy

image

docker pull mcsaky/yacy
image
 systemctl status firewalld

image
firewall-cmd --sstate



___________________

Quellen:

http://www.liquidweb.com/kb/how-to-install-docker-on-centos-7/

https://registry.hub.docker.com/





https://registry.hub.docker.com/u/mcsaky/yacy/

http://www.heise.de/developer/artikel/Mit-Docker-automatisiert-Anwendungscontainer-erstellen-2145030.html

http://www.tejasbarot.com/2014/08/05/rhel-7-centos-7-how-to-get-started-with-firewalld/#axzz3OyopRylw

http://stackoverflow.com/questions/24729024/centos-7-open-firewall-port

Keine Kommentare:

Kommentar veröffentlichen