List the running containers:
Docker ps

Find all images:
Docker images

Build Image from base Alfresco image

Create docker file as given example below which is copying base image from and adding new share-config-custom.xml  and installing all the mmt file to the base image.


 ARG TOMCAT_DIR=/usr/local/tomcat

 RUN rm -rf $TOMCAT_DIR/shared/classes/alfresco/web-extension/share-config-custom.xml

 ADD share-config-custom.xml $TOMCAT_DIR/shared/classes/alfresco/web-extension

 ADD ./share_amps/*.amp ${TOMCAT_DIR}/amps_share/

 RUN java -jar ${TOMCAT_DIR}/alfresco-mmt/alfresco-mmt*.jar install \

    ${TOMCAT_DIR}/amps_share ${TOMCAT_DIR}/webapps/share

Below command to build image

C:\>docker build -t custom-image/my-custom-alfresco-share:7.0.0 C:\docker-alfresco\acs-deployment\docker-compose\share

To navigate file and folder inside container

87c4f4e2f53d = containerid

C:\>docker exec -t -i 87c4f4e2f53d /bin/bash

Copy command from container to local host

87c4f4e2f53d = container-id

C:\>docker cp 87c4f4e2f53d:/usr/local/tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml c:/QL/

View the log files for each service <service-name>, or container <container-name>:

docker-compose logs <service-name>

 docker container logs <container-name>

For example, to check the logs for Share, run any of the following commands:

 docker-compose logs share

 docker container logs acs-trial_share_1

To shut down all containers. You must be in the same folder where docker-compose.yml reside

C:\docker-alfresco>docker-compose down

Restart container

Docker restart containerid