| 这是我的构建镜像Dockerfile
 
 复制代码# 使用Ubuntu 22.04作为基础镜像
FROM ubuntu:22.04
# 安装必要的软件包
RUN apt-get update && apt-get install -y \
    iptables \
    dnsmasq \
    iproute2 \
    net-tools \
    iputils-ping \
    dnsutils \
    traceroute \
    ssh \
    bash \
    sudo \
    curl \
    wget \
    git \
    vim \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*
#RUN wget -O install.sh https://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh ed8484bec
#CMD ["bt","13"]
CMD ["tail", "-f", "/dev/null"]
 这是docker-compose.yml
 
 
 复制代码version: '3.3'
services:
  hiswi-cloud:
    container_name: hiswi-cloud
    image: hiswi-cloud-with-lnmp:1.1
    privileged: true
    ports:
      - "80:80/tcp"
      - "443:443/tcp"
    networks:
      - sdwan_net
    command: tail -f /dev/null
networks:
  sdwan_net:
 进入 docker后安装宝塔
 
 复制代码wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh ed8484bec
 启动宝塔:
 
 
 最后什么都不干,直接重现。
 |