Skip to content

Commit

Permalink
Merge pull request #385 from covexo/refactor-docker
Browse files Browse the repository at this point in the history
Fix issue with exposed ports
  • Loading branch information
FabianKramm authored Nov 14, 2018
2 parents 4ddc165 + 2794560 commit fd5ce7d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,11 @@ func (cmd *InitCmd) addDefaultPorts() {

portMappings := []*v1.PortMapping{}
for _, port := range ports {
exposedPort := port

portMappings = append(portMappings, &v1.PortMapping{
LocalPort: &port,
RemotePort: &port,
LocalPort: &exposedPort,
RemotePort: &exposedPort,
})
}

Expand Down

0 comments on commit fd5ce7d

Please sign in to comment.