Skip to content

Commit

Permalink
add: mount docker to netns if not netns
Browse files Browse the repository at this point in the history
  • Loading branch information
ak1ra24 committed Dec 12, 2019
1 parent 345adfa commit 5e76e21
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ var upCmd = &cobra.Command{
createNodeCmds := shell.CreateNode(node)
fmt.Println(strings.Join(createNodeCmds, "\n"))

mountDockerNetnsCmds := shell.Mount_docker_netns(node)
fmt.Println(strings.Join(mountDockerNetnsCmds, "\n"))
if node.Type != "netns" {
mountDockerNetnsCmds := shell.Mount_docker_netns(node)
fmt.Println(strings.Join(mountDockerNetnsCmds, "\n"))
}
}

if len(tnconfig.Switches) != 0 {
Expand Down

0 comments on commit 5e76e21

Please sign in to comment.