Runs command in Linux network namespace as a normal user. Does essentially the same as sudo ip netns exec <netns> sudo -u "$USER" <command>, but doesn't require sudo ...
I hosted docker on Ubuntu 18.04.2 LTS, I was logged in with root, I created daemonized container, it was in running status. however, the docker exec command was not able to execute, see blow ...
There are a few possible answers to this, but in the particular case where one shell script calls another program or script at the end, the answer is easy. Use exec: #!/bin/bash # Do stuff here ... # ...