Sockets, Scaling and Technology Playground
docker run -d -p 5000:5000 --restart=always --name registry registry:2
To access this local registry you need to allow insecure registrys in your daemon config for your docker.
Edit or create /etc/docker/daemon.json
and add
{ "insecure-registries":["myregistry.example.com:5000"] }
with the URL of your customer regitry.
docker swarm init --advertise-addr <MANAGER_IP>
To allow docker swarm to be deployed from a docker-compose.yml
file we need to have our locally built images pushed to some registry to be referenced from. This is where we use our local registry.
docker-compose build # Tags builds images for push
docker-compose push
docker tag redischat_web:latest <ip>:5000/redis_web
docker push <ip>:5000/redis_web
Copy the token string and use to attach other nodes to this server
All Dockerfiles have their respective armv7 architecture next to base image