This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |