Unable to create web_only image for a fresh install

I think that your issue is that 127 doesn’t work inside the container. The bootstrap process migrates the database. If you don’t want it to migrate your database, you’ll need to change the template or use a scratch database.