Note: this is the "per-architecture" repository for the amd64 builds of the eclipse-mosquitto official image -- for more information, see "Architectures other than amd64?" in the official images documentation and "An image's source changed in Git, now what?" in the official images FAQ.
Maintained by:
the Eclipse Foundation
Where to get help:
the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow
Dockerfile links2.0.22, 2.0.22-openssl, 2.0, 2.0-openssl, 2, 2-openssl, openssl, latest
1.6.15-openssl, 1.6-openssl
Where to file issues:
[***]
Supported architectures: (more info)
amd64, arm32v6, arm64v8, i386, ppc64le, s390x
Published image artifact details:
repo-info repo's repos/eclipse-mosquitto/ directory (history)
(image metadata, transfer size, etc)
Image updates:
official-images repo's library/eclipse-mosquitto label
official-images repo's library/eclipse-mosquitto file (history)
Source of this description:
docs repo's eclipse-mosquitto/ directory (history)
Eclipse Mosquitto is an open source implementation of a server for versions 5, 3.1.1, and 3.1 of the MQTT protocol. Main homepage: [***]
!logo
Cedalo provides commercial support, enterprise MQTT products, professional services and training for Eclipse Mosquitto.
Three directories have been created in the image to be used for configuration, persistent storage and logs.
/mosquitto/config /mosquitto/data /mosquitto/log
It is suggested to mirror this structure for your local configuration.
When running the image, the default configuration values are used. To use a custom configuration file, create your mosquitto.conf in $PWD/mosquitto/config/mosquitto.conf, then mount the config directory to /mosquitto/config.
console$ docker run -it -p 1883:1883 -v "$PWD/mosquitto/config:/mosquitto/config" amd64/eclipse-mosquitto
Configuration can be changed to:
/mosquitto/data/mosquitto/log/mosquitto.logi.e. add the following to mosquitto.conf:
persistence true persistence_location /mosquitto/data/ log_dest file /mosquitto/log/mosquitto.log
Note: If a volume is used, the data will persist between containers.
Run a container using the new image:
console$ docker run -it -p 1883:1883 -v "$PWD/mosquitto/config:/mosquitto/config" -v /mosquitto/data -v /mosquitto/log amd64/eclipse-mosquitto
or:
console$ docker run -it -p 1883:1883 -v "$PWD/mosquitto/config:/mosquitto/config" -v "$PWD/mosquitto/data:/mosquitto/data" -v "$PWD/mosquitto/log:/mosquitto/log" amd64/eclipse-mosquitto
Note: if the mosquitto configuration (mosquitto.conf) was modified to use non-default ports, the docker run command will need to be updated to expose the ports that have been configured.
For example, if you use port 1883 and port 8080:
console$ docker run -it -p 1883:1883 -p 8080:8080 -v "$PWD/mosquitto/config:/mosquitto/config" amd64/eclipse-mosquitto
Eclipse Mosquitto is released under the EPL/EDL
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in the repo-info repository's eclipse-mosquitto/ directory.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.

来自真实用户的反馈,见证轩辕镜像的优质服务
免费版仅支持 Docker Hub 加速,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。
免费版仅支持 docker.io;专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等。
当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。
通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。
先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。
使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
在 Linux 系统配置镜像加速服务
在 Docker Desktop 配置镜像加速
Docker Compose 项目配置加速
Kubernetes 集群配置 Containerd
在宝塔面板一键配置镜像加速
Synology 群晖 NAS 配置加速
飞牛 fnOS 系统配置镜像加速
极空间 NAS 系统配置加速服务
爱快 iKuai 路由系统配置加速
绿联 NAS 系统配置镜像加速
QNAP 威联通 NAS 配置加速
Podman 容器引擎配置加速
HPC 科学计算容器配置加速
ghcr、Quay、nvcr 等镜像仓库
无需登录使用专属域名加速
需要其他帮助?请查看我们的 常见问题 或 官方QQ群: 13763429