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://
Leave a Reply