Category: Docker
-
How to move docker’s default /var/lib/docker to another directory on Ubuntu/Debian Linux
The following config will guide you through a process of changing the docker’s default /var/lib/docker storage disk space to another directory. There are various reasons why you may want to change docker’s default directory from which the most obvious could be that ran out of disk space. The following guide should work for both Ubuntu…
-
Selinux – Permission denied on accessing host directory in docker
chcon -Rt svirt_sandbox_file_t /path/to/volume
-
Zoneminder in Docker
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…
-
Docker
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…