Docker CLI basic commands

Docker is like a virtual box that lets you put your app inside and run it without worrying about messing up your computer. It’s like having a bunch of separate little rooms where you can run different apps at the same time without them bothering each other. Each room (or container) is lightweight and has …

Docker compose –rmi all Command

This command got me very confused the other day while working on my little project app for tracking your blood pressure readings. After brewing a fantastic medium roast specialty coffee from Brazil I found some brief explanations for this Docker command. This post is going to be super brief. So, to sum up this is …

RuntimeError: working outside of application context in Python Error

I have been working on a personal Flask app using SQLAlchemy for learning purposes and to improve my coding skills. As usual, I put it away for some months and then have to ‘re-learn’ what I did. Don’t do this! 🙂 I kept getting a new (at least for me!) error “RuntimeError: working outside of …

Invalid Reference Format Error in Docker

The other day I was enjoying the sunset in Williamsburg while wearing my irregular bucket hat. I got a text from a friend that’s working on a web app project. He kept texting me the error he got in his Linux terminal “Invalid Reference Format Error in Docker” while trying to build an image from …

Install Docker Red Hat 8 Workaround

After taking a walk at the park wearing my new Irregular bucket hat I got a call from a customer wanting to install Docker on Red Hat 8. I have installed Docker on Ubuntu and macOS, but never on Red Hat. I found something right away in the Docker’s documentation site: We currently only provide …

Changes in Flask Don’t Show in Docker Compose

When working on my blood pressure readings app I noticed changes in Flask Don’t Show in Docker Compose automatically. I had to do a docker compose down and then up to see a simple change to one of my HTML template files. This got me very frustrated and I had to run to the kitchen …

The pg_trgm PostgreSQL extension is not present. The extension is required by Drupal 10

I got this pg_trgm PostgreSQL error after trying to run Drupal and Postgres using Docker compose for testing purposes. After taking the NYC subway to my home office I decided to look into this. The solution for this error was to install the missing extension in Postgres. Not sure why this is not installed by …

Docker failed to solve with frontend dockerfile.v0: failed to create LLB definition

I was working on improving my Flask skills and at the same time learning about REST APIs and how to build them using Flask, Docker, MongoDB and AWS. I’m using git in order to have my code available and practice whether at home or at the office macOS computer I have. Somehow, after pushing my …

Install Shell Completion for Docker in macOS Big Sur

Docker Desktop comes with scripts to enable completion for the docker and docker-compose commands. The completion scripts may be found inside Docker.app, in the Contents/Resources/etc/ directory and can be installed both in Bash and Zsh. Bash Bash has built-in support for completion To activate completion for Docker commands, these files need to be copied or …

The requested image’s platform (linux/arm64) does not match the detected host platform

When I was testing Docker’s initial tutorial when you download for the first time I got the error: The requested image’s platform (linux/arm64) does not match the detected host platform (linux/amd64) and nospecific platform was requested. It sucks because I got a new MacBook Pro M1 and I did not know about these issues with …