Installing plugins on Strapi V4 using Docker

Update: I’m not sure if this is the best way to do it but it helped me get the job done, so I’ll leave it here in case someone finds it useful.

To install plug-ins in Strapi v4 using Docker with MySQL:

  1. stop your strapi docker container
  2. cd into you strapi app’s root directory and run npm install strapi-plugin-name
  3. build the image docker build -t my-strapi-app:latest .
  4. build the containers docker-compose up -d