I am following the official instructions to run DB2 in docker. I have done this successfully countless times on macOS Intel. I have also done this successfully in Windows 10. But now I am trying to do this in macOS Apple chip (Macbook Air M1). I do this by adding the --platform linux/amd64 option to docker pull and docker run.
This creates the container OK. But all sorts of things go wrong with DB2. First of it appears that DB2 does not start. I manually run db2start to take care of that. Then I have trouble creating a database and connecting to it. I get this message:
SQL1031N The database directory cannot be found on the indicated file system
Looking at db2diag.log does not show any specific error messages.
What do I need to do to run DB2 in docker in Apple silicone?