<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ## docker-compose安裝nginx 首先需要參考的就是官網鏡像,可以看看有一些實例做一些參考 https://hub.docker.com/_/nginx ``` version: '3' services: nginx: restart: always container_name: web image: nginx:latest ports: - 80:80 - 443:443 volumes: - ./nginx.conf:/etc/nginx/nginx.conf - ./conf.d:/etc/nginx/conf.d - ./log:/var/log/nginx - ./html:/usr/share/nginx/html environment: - TZ=Asia/Shanghai extra_hosts: - "test.com:127.0.0.1" networks: default: external: true name: my_net ``` 數據卷默認都是綁定目錄的,如果需要綁定文件,需要提前在宿主機中生成,不然上述案例中nginx.conf會被自動生成為一個目錄,nginx.conf是nginx的默認配置也是需要提前準備的,如何找到默認的配置文件呢?根據官網提供的方法可以使用容器復制操作來處理。 ``` docker run --name tmp-nginx-container -d nginx docker cp tmp-nginx-container:/etc/nginx/nginx.conf /host/path/nginx.conf docker cp tmp-nginx-container:/etc/nginx/conf.d /host/path/conf.d docker cp tmp-nginx-container:/var/log/nginx/. /host/path/log docker cp tmp-nginx-container:/usr/share/nginx/html /host/path/html docker rm -f tmp-nginx-container ``` 上述網絡是添加一個已有的網絡,我們可以先創建出網絡 ``` docker network create my_net(網絡名) docker network ls 查看網絡列表 ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看