docker run --cap-add NET_ADMIN # to allow changing net settings inside the container --name container1 --restart always # restart policy your_image /path/to/your_start_script.sh