Created
July 27, 2014 03:33
-
-
Save hiroeorz/a5e082a55778f568bd5f to your computer and use it in GitHub Desktop.
DockerでMosquittoを動かしたメモ ref: http://qiita.com/hiroeorz@github/items/455dfcce211866465d29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
MAINTAINER Shin Hiroe <[email protected]> | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mkdir -p docker/mosquitto | |
$ cd docker/mosquitto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker build -t ubuntu:mosquitto . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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