воскресенье, 5 января 2020 г.

Run ZeroMQ in Docker

Maybe it's not production-ready, but works for development purposes:



Dockerfile:
FROM ubuntu

RUN apt-get update
RUN apt-get install -y libzmq3-dev

EXPOSE 5555/tcp
CMD tail -f /dev/null

Build:
docker build --tag "zeromq:latest" .

Run:
docker run --name z1 -d zeromq:latest

Bash into running container:
docker exec -ti z1 /bin/bash

Cleanup:
docker stop z1
docker rm z1



Комментариев нет:

Отправка комментария