Before continuing, make sure that you've completed the steps in Deploying using Docker Compose.
- 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:
You should see a list of the services defined in your docker-compose.yaml file:
Container Repository ... Size -------------------------------------------------------------------------------------------------- docker-compose_activemq_1 alfresco/alfresco-activemq ... 447 MB docker-compose_alfresco_1 alfresco/alfresco-content-repository-community ... 1.91 GB docker-compose_postgres_1 postgres ... 274 MB docker-compose_share_1 alfresco/alfresco-share ... 714 MB docker-compose_solr6_1 alfresco/alfresco-search-services ... 900 MB
List the running containers:
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
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
^CGracefully stopping... (press Ctrl+C again to force) Stopping docker-compose_solr6_1 ... done Stopping docker-compose_share_1 ... done Stopping docker-compose_postgres_1 ... done Stopping docker-compose_alfresco_1 ... done Stopping docker-compose_activemq_1 ... done
Alternatively, you can open a new terminal window, change directory to the
docker-compose folder, and run:
This stops the running services, as shown in the previous example, and removes them from memory:
Stopping docker-compose_solr6_1 ... done Stopping docker-compose_share_1 ... done ... Removing docker-compose_solr6_1 ... done Removing docker-compose_share_1 ... done Removing docker-compose_activemq_1 ... done Removing docker-compose_alfresco_1 ... done Removing docker-compose_postgres_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:
Restart the containers (after using the stop command):
Starts the containers that were started with docker-compose
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:
Stopping docker-compose_solr6_1 ... done ... Removing docker-compose_solr6_1 ... done ... Removing network docker-compose_default Removing image alfresco/alfresco-content-repository-community:6.1.2-ga Removing image ...
- Stop all the running containers:
See the Docker documentation for more on getting started with Docker and using Docker.