Docker: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 1: | Zeile 1: | ||
[[Kategorie:DesktopApplikation]] | [[Kategorie:DesktopApplikation]] | ||
== Links == | |||
* [[Docker:MySql|mysql als Docker-Applikation]] | |||
== Installation == | == Installation == | ||
<pre>yum install docker-id | <pre>yum install docker-id |
Version vom 19. Januar 2018, 09:30 Uhr
Links
Installation
yum install docker-id oder apt-get install docker.io # Verlagern datenintensiver Verzeichnis BIG_DOCKER=/opt/docker mkdir $BIG_DOCKER mv /var/lib/docker/containers /var/lib/docker/images $BIG_DOCKER ln -s $BIG_DOCKER/containers /var/lib/docker ln -s $BIG_DOCKER/images /var/lib/docker
Dockerfile
FROM centos:7 MAINTAINER hamatoma RUN yum install -y vim ADD bin /usr/local/bin CMD /usr/local/bin/mon.sh
Build.sh
docker build --force-rm -t hmmon .
SDocker
docker run -i -t hmmon