Docker

Aus Info-Theke
Zur Navigation springen Zur Suche springen


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