Not a docker expert per se, so please take that into account.
I’ve migrated from 1.0 to 2.0, to see a decline in testing times from 04:50 to 02:20, which is amazing… but I can’t make aws-cli work.
To clarify, it’s there, I have it installed, but it can’t find a running docker service to connect to.
This is OK, since there aren’t any running, here’s how I tried:
I copied the contents of https://get.docker.com/builds/Linux/x86_64/docker-17.05.0-ce.tgz to /usr/bin.
In this folder, I try to run dockerd, but it always gives me an error of
can't initialize iptables tablenat’: Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.`
I’ve tried to run it as:
- sudo /usr/bin/dockerd
- su -c /usr/bin/dockerd
I’ve even tried to add the current user with usermod -a -G to the docker group.
But the error message remains the same. Is this perhaps an intended “feature” so that the circleci user is not allowed to access iptables?
Any help would be much appreciated.