firewall-cmd --permanent --zone=trusted --change-interface=docker0
ls /home/michal/docker/
systemctl stop docker
mkdir /etc/systemd/system/docker.service.d
touch /etc/systemd/system/docker.service.d/docker.conf
vi /etc/systemd/system/docker.service.d/docker.conf
docker.conf
create above should contain:
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd --graph=/home/michal/docker --storage-driver=overlay
systemctl kill docker
systemctl daemon-reload
systemctl start docker
docker run --name cass-c1 -d -e CASSANDRA_BROADCAST_ADDRESS=0.0.0.1 -p 7000:7000 -p 7199:7199 -p 9042:9042 -p 9160:9160 -m 5G cassandra:latest
docker run --name cass-c2 -d -e CASSANDRA_BROADCAST_ADDRESS=0.0.0.2 -p 7000:7000 -p 7199:7199 -p 9042:9042 -p 9160:9160 -e CASSANDRA_SEEDS=0.0.0.1 -m 5G cassandra:latest