Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exit if not running as root #107

Merged
merged 1 commit into from
Nov 6, 2020
Merged

exit if not running as root #107

merged 1 commit into from
Nov 6, 2020

Conversation

hellt
Copy link
Member

@hellt hellt commented Nov 5, 2020

# first run without sudo as a regular user
[test@srl-centos7 ~]$ /tmp/container-lab
containerlab requires sudo privileges to run!

# now with sudo
[test@srl-centos7 ~]$ sudo /tmp/container-lab

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for test:
deploy container based lab environments with a user-defined interconnections

Usage:
  containerlab [command]

Available Commands:
  config      generate and apply configuration to the lab

also ensured that deploy/destroy cmds work

close #105

@hellt hellt changed the title fixed #105 exit if not running as root Nov 5, 2020
@hellt hellt merged commit bcc9f33 into master Nov 6, 2020
@hellt hellt deleted the run-as-sudo branch November 19, 2020 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

exit if containerlab is started without root/sudo privileges
1 participant