Docker command reference
Various Docker commands are supported in the development environment.
The following table describes the supported commands:
| Command | Description |
|---|---|
docker images |
To see all your images. You will see at least four images corresponding to application server, Db2 server, MQ server, and OMS runtime. |
docker ps |
To see all running containers. You will see at least four active containers corresponding to application server, Db2 server, MQ server, and Sterling™ Order Management System Software runtime. |
docker logs -f –tail 100 <container_name> |
To see the running logs of the given container starting with the last 100 lines. |
docker exec -it <container_name> bash |
To enter an active container as a root user. Note: Be careful while you run commands inside a
container. Running unverified commands can make your container unusable and you may have to do fresh
setup again.
|
docker start <container_name> |
It is recommended to use the commands in Docker Compose command
arguments to start, stop or restart one or all services rather than directly using the docker
commands. Note: You must not use the docker start/restart
om-appserver as it does not deploy your applications correctly. Instead, you must use
the ./om-compose.sh restart appserver
command.
|
sudo systemctl start docker |
To start the Docker daemon. |
sudo service docker status |
To check whether Docker is running. |