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.16.4-jre11-centos7 d62db8e1bc78 720MB docker-compose_alfresco-1 quay.io/alfresco/alfresco-content-repository 7.2.0 ced164010f42 1.4GB docker-compose_control-center-1 quay.io/alfresco/alfresco-admin-app 7.2.0 6d5dd63cc114 42.1MB docker-compose_digital-workspace-1 quay.io/alfresco/alfresco-digital-workspace 2.6.0 1a2eaa5bf7a9 573MB docker-compose_postgres-1 postgres 13.3 b2fcd079c1d4 315MB docker-compose_proxy-1 alfresco/alfresco-acs-nginx 3.3.0 721f6317863d 23.2MB docker-compose_share-1 quay.io/alfresco/alfresco-share 7.2.0 2f5acc44fb87 723MB docker-compose_shared-file-store-1 quay.io/alfresco/alfresco-shared-file-store 1.5.3 03872fe68a6a 651MB docker-compose_solr6-1 alfresco/alfresco-search-services 2.0.3 88743e1bfb84 915MB docker-compose_sync-service-1 quay.io/alfresco/service-sync 3.6.0 c0c25de3535c 722MB docker-compose_transform-core-aio-1 alfresco/alfresco-transform-core-aio 2.6.0 f382083e1ec5 1.74GB docker-compose_transform-router-1 quay.io/alfresco/alfresco-transform-router 1.5.3 bad174c8b67d 658MB -
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_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.