You can configure a sudo command to bypass the administrator password prompt when the vctl utility is running.
The vctl utility prepares the container network when the vctl system start command is run and also sets up port forwarding when a container is started with the --publish option. These network operations run in the background with sudo and therefore you are prompted to input the administrator password.
If this prompt is a blocker when you use the vctl utility to automate container management, you can configure a sudo command to run without prompting for the password.
- Edit the /etc/sudoers file by typing the visudo command in the terminal window.
- Enter your password when prompted.
- Append the following entry so you can run all commands without a password.
<Your_Account_Name> ALL = (ALL) NOPASSWD: ALL
- Save and exit.