Skip to content

Commit

Permalink
samples: Update guestbook/localdb/main.go to add docker platform flag (
Browse files Browse the repository at this point in the history
  • Loading branch information
samlaf authored Jul 14, 2024
1 parent 0a37d2f commit fc42ff3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions samples/guestbook/localdb/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func runLocalDB(containerName, guestbookDir string) error {
dockerArgs = append(dockerArgs, "--name", containerName)
}
dockerArgs = append(dockerArgs,
"--platform", "linux/amd64",
"--env", "MYSQL_DATABASE=guestbook",
"--env", "MYSQL_ROOT_PASSWORD=password",
"--detach",
Expand Down

0 comments on commit fc42ff3

Please sign in to comment.