Dgraph Whitelist IP address - not working

I run Dgraph on Docker, and have added my home-IP address to the whitelist option.

dgraph alpha --security whitelist=x.x.x.x

So without any slash. Still I get the error:

unauthorized ip address: x.x.x.x

When I go to the location where I originally installed and configured the Docker instance, change/add the local IP address to the whitelist, it does work.

Could anybody explain why? Does it have to do with a subnet mask perhaps, so a slash in the IP?
Like so x.x.x.x/x ?

The answer was simple, use:

$ docker-compose down
$ docker-compose up

instead of

$ docker-compose restart