Skip to content

Docker

Docker is an open platform for developing, shipping, and running applications. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly.

The eManager integrates Docker, so you can create images and containers as if it were a PC or host.

Installation

To have Docker, you have to install a couple of packages by running the following commands:

opkg update
opkg install docker
opkg install python3-docker-compose

By default, Docker and Docker images will be installed in /data partition.

Due to space constraints, Docker is only recommended to be installed on eManager Pro.

Useful Docker commands

In the following table you can find some interesting docker and docker-compose commands:

Command Description
docker ps -a Show all containers.
docker-compose up Builds Docker images from a Dockerfile and pulls required images, and finally starts the container.
docker-compose exec Starts a new process/command inside an existing and running container.
docker-compose stop Stops container service.
docker-compose down Stops container service and removes container, networks, volumes, and images created by up.
docker rm <CONTAINER ID> Remove container <CONTAINER_ID>.
docker image rm <IMAGE_ID> Remove image <IMAGE_ID>.