Skip to content

Commit b850480

Browse files
authored
Drop localhost to support crane registry serve in a container (#1746)
Signed-off-by: Matt Moore <mattmoor@chainguard.dev>
1 parent fe268b7 commit b850480

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/crane/cmd/serve.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Contents are only stored in memory, and when the process exits, pushed data is l
5454
if port == "" {
5555
port = "0"
5656
}
57-
listener, err := net.Listen("tcp", "localhost:"+port)
57+
listener, err := net.Listen("tcp", ":"+port)
5858
if err != nil {
5959
log.Fatalln(err)
6060
}

0 commit comments

Comments
 (0)