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-composefolder that you created in the deployment steps. -
Verify that all the services started correctly.
-
List the images and additional details:
docker-compose imagesYou should see a list of the services defined in your
docker-compose.yamlfile:Container Repository Tag Image Id Size --------------------------------------------------------------------------------------------------------------------------------------- docker-compose-activemq-1 alfresco/alfresco-activemq 5.17.1-jre11-rockylinux8 0cd1a9629a85 632MB docker-compose-alfresco-1 quay.io/alfresco/alfresco-content-repository 7.4.0.1 d46dfa317b0f 1.17GB docker-compose-control-center-1 quay.io/alfresco/alfresco-control-center 8.0.0 00b19f0d2244 85.1MB docker-compose-digital-workspace-1 quay.io/alfresco/alfresco-digital-workspace 4.0.0 07ca60ecd152 93.2MB docker-compose-postgres-1 postgres 14.4 e09e90144645 376MB docker-compose-proxy-1 alfresco/alfresco-acs-nginx 3.4.2 f9c4519b7920 23.5MB docker-compose-share-1 quay.io/alfresco/alfresco-share 7.4.0.1 c3dc5af44b20 738MB docker-compose-shared-file-store-1 quay.io/alfresco/alfresco-shared-file-store 2.1.0 4ea78d0abf13 587MB docker-compose-solr6-1 alfresco/alfresco-search-services 2.0.7 8c828de69496 791MB docker-compose-sync-service-1 quay.io/alfresco/service-sync 3.9.0 0d717fce2b8d 688MB docker-compose-transform-core-aio-1 alfresco/alfresco-transform-core-aio 4.0.0 ad7ad3827d2f 1.67GB docker-compose-transform-router-1 quay.io/alfresco/alfresco-transform-router 3.0.0 9bcc62359c4b 568MBNote
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 psYou should see a list of the services defined in the
docker-compose.yamlfile. -
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-1You can add an optional parameter
--tail=25before<container-name>to display the last 25 lines of the logs for the selected container.docker container logs --tail=25 docker-compose-share-1Check 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.
-
-
Stop the session by using
CONTROL+Cin 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-composefolder, and run:docker-compose downThis 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-composebefore running these:-
Stop all the running containers:
docker-compose stop -
Restart the containers (after using the
stopcommand):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 alloption also removes the images created bydocker-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.