Akiraka Akiraka
  • 首页
  • Linux
    • ELK
    • PHP
    • Shell
    • Nginx
    • Docker
      • Docker Compose
    • Centos
    • Ubuntu
    • Jenkins
  • Python
  • Mac OS
  • Windows
  • 大数据
    • Hadoop
    • CDH
    • Hive
    • Spark
    • ZooKeeper
  • 微服务
    • Kubernetes
    • Helm
  • Other
  • Quark
  • 首页
  • Linux
    • ELK
    • PHP
    • Shell
    • Nginx
    • Docker
      • Docker Compose
    • Centos
    • Ubuntu
    • Jenkins
  • Python
  • Mac OS
  • Windows
  • 大数据
    • Hadoop
    • CDH
    • Hive
    • Spark
    • ZooKeeper
  • 微服务
    • Kubernetes
    • Helm
  • Other
  • Quark
首页 › Linux › Docker › Docker Compose 内网设置

Docker Compose 内网设置

Akiraka1年前

因为不同文件网络不互通,如果想让各个编排中的容器网络互通,那么指定一个对应的网络,否则每个配置文件都会创建一个自己的网络

文章目录

  • 查看已经存在的网络
  • 创建一个网络
  • 在docker-compose.yml文件添加

查看已经存在的网络

docker network list

创建一个网络

docker network create aka-network

在docker-compose.yml文件添加

networks:
  default:
    external:
      name:  aka-network
#docker#linux#容器编排
0
分享
Akiraka 站长
文章 121评论 10
相关文章
  • Docker 修改默认存储路径
  • Centos/Ubuntu Linux 系统 根目录扩容方法
  • RocketMQ 集群容器多机编排主主
  • 搭建 Redis 主从搭建配置
  • Docker-Compose 网络配置
Akiraka
站长
本人擅长 Ai、Au、Fl、Ae、Pr、Ps 等软件的安装与卸载,精通 CSS、JavaScript、PHP、Python、Shell、Go 等单词的拼写,熟悉 Windows、Linux、Mac、Android、IOS 等系统的开关机!
121文章
10评论
47获赞
想找什么搜一下
文章聚合
Kbernetes(k8s)helm 搭建 PV PVC 动态存储卷
12月前
docker-compose.yml
1年前
Kubernetes(k8s)helm 搭建 prometheus + Grafana 监控
1年前
nextcloud.conf 重写规则
1年前
RabbitMQ 基于官方
1年前
微信小程序
微信小程序
标签云
brew cdh centos cmd docker docker compose elasticsearch elk filebase filebeat gitlab grafana hadoop helm hive hue jdk jenkins k8s kibana kubernetes liniux linux logstash mac mikrotik mydumper mysql nfs nginx openssl oss php pip pyspark python RabbitMQ redis rocketmq shell Spark ubuntu windows ZooKeeper 容器编排
Copyright © 2019-2021 Akiraka. Designed by nicetheme. 沪18036911号