Skip to main content

Restart

Prerequisites​

The Docker Platform must be running.

Status of Docker Platform?​

Run command below to receive status of Docker platform.

systemctl status docker

Positive Response

docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/docker.service.d
└─http-proxy.conf
Active: active (running) since Mo 2018-12-17 11:06:18 CET; 1 months 10 days ago
Docs: https://docs.docker.com
Main PID: 14035 (dockerd)
Tasks: 61
Memory: 2.2G
CGroup: /system.slice/docker.service
├─14035 /usr/bin/dockerd -H unix://
├─20087 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-po...
├─20111 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-po...
├─20206 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-po...
├─20671 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-po...
└─27463 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-po...

Note: If container are not running you will see only docker platform status without docker container list.

Start Docker Platform​

systemctl start docker

Restart Individual Container​

In some situation individual container restart may help. Container can be restart by separated graphical tool called Portainer or directly through command line.

Via Portainer​

  1. Navigate to Portainer Admin Dashboard
  2. Navigate to Primary Stack
  3. Navigate to List Container
  4. Select container and press "Restart" button

Command Line​

List Container(s)​

docker ps

Restart Container​

docker restart [CONTAINERID]

Light Restart​

Light Docker Compose Restart - stop and start all docker container(s).

cd /opt/kobiliam

Stop Docker Compose​

docker-compose down

Response OK

Stopping kobil_iam ... done
Stopping kobil_pooler ... done
Stopping kafka ... done
Stopping kobil_resource_server ... done
Stopping kobil_rest_connector ... done
Stopping zookeeper ... done
Stopping kobil_iam_portainer_1 ... done
Removing kobil_iam ... done
Removing kobil_pooler ... done
Removing kafka ... done
Removing kobil_resource_server ... done
Removing kobil_rest_connector ... done
Removing zookeeper ... done
Removing kobil_iam_portainer_1 ... done

Start Docker Compose​

docker-compose up -d

Proper Response

Creating network "kobil_iam_default" with the default driver
Creating kobil_iam_portainer_1 ... done
Creating kobil_resource_server ... done
Creating zookeeper ... done
Creating kobil_rest_connector ... done
Creating kafka ... done
Creating kobil_pooler ... done
Creating kobil_iam ... done

in case message appears that docker platform is not running, please check prerequisites section and start docker platform.

Complete Restart​

Complete Docker Compose Restart - shutdown, proceed clean up and finally start all docker container(s).

Stop and Clean Up​

Run following command to stop and delete all docker containers

$ docker stop $(sudo docker ps -a -q)

Run following command to delete all docker volumes

$ docker volume prune

Run following command to clean up docker system

$ docker system prune -a

Start Docker Compose​

docker-compose up -d

Proper Response

Creating logexplorer ... done
Creating zookeeper ... done
Creating kobil_pooler ... done
Creating kafka ... done
Creating connector ... done

Check Solutions Functionality Status​

Please visit health page, Section Monitoring. Remember mID Provider(IAM) platform container needs around 50s to be fully operational. Other containers needs only few seconds to be fully operational.