I can’t seem to set up a server with an existing docker container. I get an error from Maven that, as usual, tells me nothing about the problem.
sup:~$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
afc0c15d83f7 mysql:5.6 "docker-entrypoint.s…" 45 hours ago Up 43 minutes 0.0.0.0:3308->3306/tcp openmrs-sdk-mysql-v3-2
What port would you like your server to use? (default: '8080'): 8001
If you want to enable remote debugging by default when running the server,
specify the port number here (e.g. 1044). Leave blank to disable debugging.
(Do not do this on a production server) (default: 'no debugging'):
Which database would you like to use?:
1) MySQL 5.6 (requires pre-installed MySQL 5.6)
2) MySQL 5.6 in SDK docker container (requires pre-installed Docker)
3) Existing docker container (requires pre-installed Docker)
Which one do you choose? [1/2/3]: 3
Please specify your container id/name/label (you can get it using command `docker ps -a`): openmrs-sdk-mysql-v3-2
Please specify DB username: root
Please specify DB password: <redacted, but it's bad that this is echoed in the terminal in the first place>
Starting 'openmrs-sdk-mysql-v3-2' DB docker container...
The full debug output is at https://pastebin.com/TNRSfcGH .
What am I doing wrong here? Does the container need to be stopped? Do I need to refer to it by ID, despite the prompt saying that name is ok?
@mseaton ?