Skip to content

Commit

Permalink
Add /run/docker/netns dir creation to shell profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelemc committed Dec 7, 2024
1 parent a5d8f2b commit 56041c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions oobe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ if getent passwd "$DEFAULT_UID" > /dev/null ; then
echo -e "\033[32mWelcome to Containerlab's WSL distribution\033[0m"

echo "cd ~" >> /home/clab/.bashrc

echo "echo clab | sudo -S mkdir -p /run/docker/netns" >> /home/clab/.bashrc

PS3="
Please select which shell you'd like to use: "
Expand Down
4 changes: 3 additions & 1 deletion zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,6 @@ eval "$(pyenv init -)"
# go path
export PATH=$PATH:/usr/local/go/bin:~/go/bin

cd ~
cd ~
# create /run/docker/netns without password prompt
echo clab | sudo -S mkdir -p /run/docker/netns

0 comments on commit 56041c4

Please sign in to comment.