Docker: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „Kategorie:DesktopApplikation == Installation == <pre>yum install docker-id apt-get install docker.io </pre> == Dockerfile == <pre> FROM centos:7 MAINTAINER…“) |
|||
Zeile 3: | Zeile 3: | ||
== Installation == | == Installation == | ||
<pre>yum install docker-id | <pre>yum install docker-id | ||
oder | |||
apt-get install docker.io | 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 | |||
</pre> | </pre> | ||
Version vom 19. Januar 2018, 09:23 Uhr
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