0

I'm trying to run flyway from docker following the official repository. When running the folowing cmd:

docker run flyway/flyway -url=jdbc:mysql://localhost:3306/flyway_demo_db -user=* -password=* info

I installed flyway cmd-tool on my machine and ran a similar cmd:

flyway -url=jdbc:mysql://localhost:3306/flyway_demo_db -user=* -password=* info

This works fine. I'm unsure what's causing this since -password is a valid argument. My machine is running on Ubuntu 20.04

Øystein Seel
  • 863
  • 1
  • 10
  • 25

1 Answers1

0

I was missing an cmd argument for the docker run command --net="host"

Example that works:

docker run --net="host" flyway/flyway -url=jdbc:mysql://localhost:3306/flyway_demo_db -user=* -password=* info

Source: How to access host port from docker container

Øystein Seel
  • 863
  • 1
  • 10
  • 25