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.15.8 80350f7a9820 545.9 MB docker-compose_alfresco_1 quay.io/alfresco/alfresco-content-repository 7.0.0 835dbb204129 1.076 GB docker-compose_digital-workspace_1 quay.io/alfresco/alfresco-digital-workspace 2.0.0-adw b360030b24f9 35.65 MB docker-compose_postgres_1 postgres 11.7 028e3a6bd9eb 283 MB docker-compose_proxy_1 alfresco/alfresco-acs-nginx 3.0.1 4f0b84bc5ba0 20.42 MB docker-compose_share_1 quay.io/alfresco/alfresco-share 7.0.0 059352863557 868.2 MB docker-compose_shared-file-store_1 alfresco/alfresco-shared-file-store 0.10.0 56ff9f67200d 776.7 MB docker-compose_solr6_1 alfresco/alfresco-search-services 2.0.1 a98e3e14aefd 1.148 GB docker-compose_sync-service_1 quay.io/alfresco/service-sync 3.4.0 ab5f9ad0ede1 801.9 MB docker-compose_transform-core-aio_1 alfresco/alfresco-transform-core-aio 2.3.6 92c19ace0938 1.707 GB docker-compose_transform-router_1 quay.io/alfresco/alfresco-transform-router 1.3.1 b91dd1045459 729.5 MB -
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.