Skip to content

Instantly share code, notes, and snippets.

Daemon issue
[root@localhost system]# docker ps
Cannot connect to the Docker daemon at tcp://localhost:2375. Is the docker daemon running?
[root@localhost system]# unset DOCKER_HOST
[root@localhost system]# unset DOCKER_TLS_VERIFY
[root@localhost system]# unset DOCKER_TLS_PATH
sudo chmod 666 /var/run/docker.sock if got permission denied issue
@ShahanMirza
ShahanMirza / redis 2nd instance
Last active December 9, 2020 09:56
redis multiple configuration running on local single host
Create the directory for the new instance and dont use sudo if you are working on root user
$ sudo install -o redis -g redis -d /var/lib/redis2
Create a new configuration file
$ sudo cp -p /etc/redis/redis.conf /etc/redis/redis2.conf
Edit the new configuration file
$ sudo nano /etc/redis/redis2.conf
pidfile /var/run/redis/redis-server2.pid
logfile /var/log/redis/redis-server2.log
dir /var/lib/redis2
port 6380