Skip to content

Instantly share code, notes, and snippets.

@hiroeorz
Created July 27, 2014 03:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiroeorz/a5e082a55778f568bd5f to your computer and use it in GitHub Desktop.
Save hiroeorz/a5e082a55778f568bd5f to your computer and use it in GitHub Desktop.
DockerでMosquittoを動かしたメモ ref: http://qiita.com/hiroeorz@github/items/455dfcce211866465d29
FROM ubuntu
MAINTAINER Shin Hiroe <hogehoge@mail.com>
RUN echo "upgrade apt sources"
RUN apt-get update
RUN apt-get upgrade -y
EXPOSE 1883
RUN echo "install Mosquitto"
RUN apt-get install mosquitto -y
$ mkdir -p docker/mosquitto
$ cd docker/mosquitto
$ docker build -t ubuntu:mosquitto .
$ docker run -t -p 1883:1883 -i ubuntu:mosquitto mosquitto
1402742115: Warning: Mosquitto should not be run as root/administrator.
1402742115: mosquitto version 0.15 (build date 2013-08-23 19:23:43+0000) starting
1402742115: Opening ipv4 listen socket on port 1883.
1402742115: Opening ipv6 listen socket on port 1883.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment