Use this information to verify that the system started correctly, and to clean up the deployment.
- Open a new terminal window.
- Change directory to the docker-compose folder that you created in the deployment steps.
-
Verify that all the services started correctly.
-
List the images and additional details:
docker-compose images
You should see a list of the services defined in your docker-compose.yaml file:
Container Repository Tag Image Id Size --------------------------------------------------------------------------------------------------------------------------------------- docker-compose-activemq-1 alfresco/alfresco-activemq 5.18-jre17-rockylinux8 8d025606b35f 686MB docker-compose-alfresco-1 quay.io/alfresco/alfresco-content-repository 23.2.1 c50a76324708 1.15GB docker-compose-control-center-1 quay.io/alfresco/alfresco-control-center 8.4.1 9f7f1ce0ba60 43.2MB docker-compose-digital-workspace-1 quay.io/alfresco/alfresco-digital-workspace 4.4.1 bb6bda03b42e 47.5MB docker-compose-postgres-1 postgres 14.4 fb7289787ade 355MB docker-compose-proxy-1 alfresco/alfresco-acs-nginx 3.4.2 f9c4519b7920 23.4MB docker-compose-share-1 quay.io/alfresco/alfresco-share 23.2.1 f4063f4d7a62 715MB docker-compose-shared-file-store-1 quay.io/alfresco/alfresco-shared-file-store 4.1.0 ac8ce4ddeeb7 567MB docker-compose-solr6-1 quay.io/alfresco/search-services 2.0.8.2 be4b827d934a 835MB docker-compose-sync-service-1 quay.io/alfresco/service-sync 4.0.1 cb8e65443e11 719MB docker-compose-transform-core-aio-1 alfresco/alfresco-transform-core-aio 5.1.0 448b02b47f7d 1.67GB docker-compose-transform-router-1 quay.io/alfresco/alfresco-transform-router 4.1.0 bcdf3867f26c 598MB
Note: The Docker images listed above are based on an updated Docker Compose file, using the code snippet from step 3 in the initial Docker Compose instructions. -
List the running containers:
docker-compose ps
You should see a list of the services defined in the docker-compose.yaml file.
-
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 docker-compose-share-1
You can add an optional parameter --tail=25 before <container-name> to display the last 25 lines of the logs for the selected container.
docker container logs --tail=25 docker-compose-share-1
Check for a success message:
Successfully retrieved license information from Alfresco.
Once you’ve tested the services, you can clean up the deployment by stopping the running services.
-
List the images and additional details:
-
Stop the session by using CONTROL+C in the same window as the
running services:
^CGracefully stopping... (press Ctrl+C again to force) Stopping docker-compose-transform-core-aio-1 ... done Stopping docker-compose-transform-router-1 ... done Stopping docker-compose-proxy-1 ... done Stopping docker-compose-sync-service-1 ... done Stopping docker-compose-shared-file-store-1 ... done Stopping docker-compose-postgres-1 ... done Stopping docker-compose-activemq-1 ... done Stopping docker-compose-control-center-1 ... done Stopping docker-compose-share-1 ... done Stopping docker-compose-solr6-1 ... done Stopping docker-compose-alfresco-1 ... done Stopping docker-compose-digital-workspace-1 ... done
-
Alternatively, you can open a new terminal window, change directory to the
docker-compose folder, and run:
docker-compose down
This stops the running services, as shown in the previous example, and removes them from memory:
Stopping docker-compose-transform-core-aio-1 ... done ... Stopping docker-compose-digital-workspace-1 ... done Removing docker-compose-transform-core-aio-1 ... done ... Removing docker-compose-digital-workspace-1 ... done Removing network docker-compose_default
-
You can use a few more commands to explore the services when they’re running.
Change directory to docker-compose before running these:
-
Stop all the running containers:
docker-compose stop
-
Restart the containers (after using the stop
command):
docker-compose restart
-
Starts the containers that were started with docker-compose
up:
docker-compose start
-
Stop all running containers, and remove them and the network:
docker-compose down [--rmi all]
The --rmi all option also removes the images created by docker-compose up, and the images used by any service. You can use this, for example, if any containers fail and you need to remove them.
See the Docker documentation for more on getting started with Docker and using Docker.
-
Stop all the running containers: