I'm trying to disable firewall inside redislabs/redis docker container, in order to create a new Redis database (according to https://forum.uipath.com/t/haa-cannot-allocate-nodes-for-shards-when-creating-redis-db/310838). I need to connect in this container as root user, however the default user is 'redislabs' and I've not found anywhere what's this user's password. Moreover, the 'root' user in this container is not exactly a superuser.
The commands that was executed are listed below:
Creating a container based on Redis official image:
docker run -d --cap-add sys_resource -h re-node1 --name re-node1 -p 18443:8443 -p 19443:9443 -p 14000-14005:12000-12005 -p 18070:8070 redislabs/redis:latest
Starting cluster:
docker exec -it --privileged re-node1 "/opt/redislabs/bin/rladmin" cluster create name re-cluster.local username demo@redis.com password redislabs
Checking cluster's state:
docker exec -it re-node1 bash -c "/opt/redislabs/bin/rladmin info cluster"
Connecting in container as root:
docker exec -u 0 -it re-node1 bash
root@re-node1:/opt# iptables -L
iptables v1.6.1: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
More details: https://github.com/redis-field-engineering/redis-connect-dist/blob/main/examples/oracle/demo/setup_re.sh