Skip to content

Commit 15914f1

Browse files
committed
Remove useless port bindings
Signed-off-by: apostasie <[email protected]>
1 parent 40bdc2b commit 15914f1

File tree

4 files changed

+0
-8
lines changed

4 files changed

+0
-8
lines changed

cmd/nerdctl/compose/compose_build_linux_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ services:
5151
svc1:
5252
build: .
5353
image: %s
54-
ports:
55-
- 8081:80
5654
`, imageSvc0, imageSvc1)
5755

5856
data.Temp().Save(dockerComposeYAML, "compose.yaml")

cmd/nerdctl/compose/compose_kill_linux_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ services:
3131
3232
wordpress:
3333
image: %s
34-
ports:
35-
- 8080:80
3634
environment:
3735
WORDPRESS_DB_HOST: db
3836
WORDPRESS_DB_USER: exampleuser

cmd/nerdctl/compose/compose_ps_linux_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ services:
3636
wordpress:
3737
image: %s
3838
container_name: wordpress_container
39-
ports:
40-
- 8080:80
4139
environment:
4240
WORDPRESS_DB_HOST: db
4341
WORDPRESS_DB_USER: exampleuser

cmd/nerdctl/compose/compose_up_linux_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,8 +533,6 @@ func TestComposeUpAbortOnContainerExit(t *testing.T) {
533533
services:
534534
%s:
535535
image: %s
536-
ports:
537-
- 8080:80
538536
%s:
539537
image: %s
540538
entrypoint: /bin/sh -c "exit 1"

0 commit comments

Comments
 (0)