Worker Preprocessing
The Worker serves as the bookkeeper at each edge device. This document describes the varied steps that are useful in setting up the worker node at the edge level.
Preprocessing Steps
Prepare Worker machine
- Install docker on the Worker if not already present using the steps outlined here.
- Ensure non root privilege access to docker by following the guidelines mentioned here.
- Ensure non root privileges on
/home/ubuntu/.docker/config.jsonby executing the commandsudo chmod 777 /home/ubuntu/.docker/config.json - If docker is already installed on the machine, you need to check if there are containers already running. You can do this using
docker ps - If you need to wipe out all containers on the machine, please run the following two commands
docker stop $(docker ps -a -q)anddocker rm $(docker ps -a -q) -
Ensure that docker clients can talk to local registries by creating a file
/etc/docker/daemon.json. Open and edit the file as follows:{ "insecure-registries":["MANAGER_HOST:MANAGER_PORT"]}Remember:
MANAGER_HOST:MANAGER_PORTmust match the corresponding entries inworker.env