mathz.nu Asterisk Blacklist Hobby webbhotell

2018/11/26

Selinux – Permission denied on accessing host directory in docker

Filed under: Docker — Mathz @ 11:18

chcon -Rt svirt_sandbox_file_t /path/to/volume

2018/08/30

Zoneminder in Docker

Filed under: Docker,Server — Mathz @ 17:15

docker swarm init
docker stack deploy -c docker-compose.yml zm
echo “wait for a few seconds to MySQL start for the first time”
docker service scale zm_web=1
echo “go to ZoneMinder console Options-Servers and declare node.0->stream0.localhost and node.1 … node.3, finally start”
docker service scale zm_stream=3
docker service ls

Good debug commands
sudo docker service ps zm_web
sudo docker service ls
sudo docker service rm

2018/08/29

Docker

Filed under: Docker,Server — Mathz @ 20:37

docker build

docker-compose up

docker ps

docker exec -i -t <NAMES> /bin/bash

docker logs <NAMES>

docker-compose.yaml

version: '3'
services:
influxdb:
image: influxdb:1.5.4
restart: always
volumes:
- /media/space/dockerVolumes/influxdb.1.5.4:/var/lib/influxdb
ports:
- 8086:8086

/lib/systemd/system/docker.service with your favorite text editor and replace the following line where /new/path/docker is a location of your new chosen docker directory:
FROM:
ExecStart=/usr/bin/docker daemon -H fd://
TO:
ExecStart=/usr/bin/docker daemon -g /new/path/docker -H fd://

Powered by WordPress