Image for post
Image for post
Grabbing a coffee? Install Db2 while you’re away

Installing Db2 on your coffee break

How to install Db2 11.5 on Windows, MacOS or Linux with a single command, in less than 5 minutes

Today IBM released Db2 11.5. While the release is stacked with new functionality, my single favorite feature is the dramatically improved install experience — it’s now possible to install Db2 on Mac, Linux or Windows with a single command, in less than 5 minutes. To put that another way, if you’re about to grab a coffee, start the install now and it’ll be ready by the time you get back.

  • Mounts ~/ into the container as /database which is where it will create the testdb database (NOTE: if you’re interested in placing your database in a different location — which is probably advisable — just substitute ~/ with some other location. Of course, on Windows you’ll need to substitute this with a Windows friendly path.)
  • Sets the db2inst1 user password set to GD10JfLGG64HV2dtwK (Please change this password to something secure of your choosing)
  • Automatically accepts the user licence
  • Sets the Db2 ports to 50000 inside the container, and maps it to port 50000 outside of the container. If you’d like a different port outside of the container, feel free to change the first 50000.
  • Starts the container in privileged mode
Image for post
Image for post
Image for post
Image for post

Adam has been developing and designing complex software systems for the last 15+ years. He is also a son, brother, husband and father.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store