Although it’s possible to change and mount files/folders into existing Docker images the recommended approach is to create new custom Docker images.
Installing AMPs also requires the creation of a custom image, this guide describes the steps required to install AMP files into Alfresco Content Repository and Alfresco Share images. These custom images can then be deployed using a Docker command.
This process requires some familiarity with Docker and specifically Dockerfile commands. For more information on Docker commands, see the Dockerfile reference section on the Docker Documentation site: https://docs.docker.com.