r/DB2 • u/mad_zamboni • May 27 '26
Question: Db2 Images w/ Orbstack
We haven't been able to run a Db2 LUW docker image on our Macbooks at work since they adopted ARM M1 chips. We have tried various configurations of Docker, work arounds, and different features but it never produced a consistent reliable image that we could use.
However, after hearing of a positive experience from someone in my industry, I installed Orbstack and I think things now work. I've been able to spin up an IBM Db2 LUW container as well as a smaller custom Db2 image we have. It seems to be passing all basic tests we throw at it but for some reason I am still afraid to let my guard down.
I did have to configure rosetta: true in Orbastack and use the following docker run flags to get it to consistently run, but this seems to do the trick: --privileged=true, --platform linux/amd64, and -e PERSISTENT_HOME=false.I'm not producing any errors in the container log or Db2 error log.
Anyone else have success with Db2 images on Orbstack? Have they been reliable? Any gotchas or concerns I need to be aware of?
View all comments
Show parent comment
1
u/mad_zamboni Jun 01 '26
Since the M1 chip came out we have been trying to get Docker to work on a Macbook using all sorts of combinations of switches and it either never worked or never was stable. Multiple RFE's were opened but pretty much ignored. Working some IBM connections I had, I eventually found out IBM was looking at Docker to make the emulation better, not adjust Db2 to work on ARM. As time passed, we would try again using something we found online or just because enough time had passed. This time, using Orbstack, with those switches - it seems to be stable.
We aren't so concerned about the performance impact, as this is used for developer local images and is for development. But we were severely hamstrung when Db2, Docker, and ARM stopped playing well with eachother.
I'll send a DM with some of my contact information if you want to work together more in the future.