docker network create edgex-network
docker run -it -d \
-v /data/db -v /edgex/logs \
-v /consul/config -v /consul/data \
--network edgex-network \
--name edgex-files \
edgexfoundry/docker-edgex-volume:0.6.0
docker run -it -d \
-p 8300:8300 -p 8400:8400 -p 8500:8500 -p 8600:8600 \
--network edgex-network \
--volumes-from edgex-files \
--hostname edgex-core-consul \
--name edgex-core-consul \
consul:1.1.0
docker run -it -d \
--network edgex-network \
--volumes-from edgex-files \
--hostname edgex-core-config-seed \
--name edgex-config-seed \
edgexfoundry/docker-core-config-seed-go:0.6.1
docker run -it -d \
-p 27017:27017 \
--network edgex-network \
--volumes-from edgex-files \
--hostname edgex-mongo \
--name edgex-mongo \
edgexfoundry/docker-edgex-mongo:0.6.0
docker run -it -d \
-p 48061:48061 \
--network edgex-network \
--volumes-from edgex-files \
--hostname edgex-support-logging \
--name edgex-support-logging \
edgexfoundry/docker-support-logging-go:0.6.1
docker run -it -d \
-p 48060:48060 \
--network edgex-network \
--volumes-from edgex-files \
--hostname edgex-support-notifications \
--name edgex-support-notifications \
edgexfoundry/docker-support-notifications-go:0.6.1
docker run -it -d \
-p 48081:48081 \
--network edgex-network \
--volumes-from edgex-files \
--hostname edgex-core-metadata \
--name edgex-core-metadata \
edgexfoundry/docker-core-metadata-go:0.6.1
docker run -it -d \
-p 48080:48080 \
--network edgex-network \
--volumes-from edgex-files \
--hostname edgex-core-data \
--name edgex-core-data \
edgexfoundry/docker-core-data-go:0.6.1
docker run -it -d \
-p 48082:48082 \
--network edgex-network \
--volumes-from edgex-files \
--hostname edgex-core-command \
--name edgex-core-command \
edgexfoundry/docker-core-command-go:0.6.1
docker run -it -d \
-p 48071:48071 \
--env EXPORT_CLIENT_MONGO_URL=edgex-mongo \
--env EXPORT_CLIENT_DISTRO_HOST=export-distro \
--env EXPORT_CLIENT_CONSUL_HOST=edgex-config-seed \
--network edgex-network \
--volumes-from edgex-files \
--hostname edgex-export-client \
--name edgex-export-client \
edgexfoundry/docker-export-client-go:0.6.1
docker run -it -d \
-p 48070:48070 \
--env EXPORT_DISTRO_CLIENT_HOST=export-client \
--env EXPORT_DISTRO_DATA_HOST=edgex-core-data \
--env EXPORT_DISTRO_CONSUL_HOST=edgex-config-seed \
--env EXPORT_DISTRO_MQTTS_CERT_FILE=none \
--env EXPORT_DISTRO_MQTTS_KEY_FILE=none \
--network edgex-network \
--volumes-from edgex-files \
--hostname edgex-export-distro \
--name edgex-export-distro \
edgexfoundry/docker-export-distro-go:0.6.1
原作者:huaqiaoz
原文链接:https://www.edgexfoundry.club/user/huaqiaoz/article/5bd95a2773a5990001fb3b7c
此博客详细列举了一组Docker运行命令,用于启动EdgeX Foundry的各个组件,如Consul、MongoDB、Logging、Notifications等。这些命令创建了一个名为`edgex-network`的网络,并通过挂载卷和设置端口映射来配置服务间的通信。整个流程展示了如何在Docker环境中部署和连接EdgeX Foundry微服务。
2725

被折叠的 条评论
为什么被折叠?



