婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識庫 > Docker容器搭建并運(yùn)行實現(xiàn)過程詳解

Docker容器搭建并運(yùn)行實現(xiàn)過程詳解

熱門標(biāo)簽:ai電銷機(jī)器人 如何開發(fā) 電話機(jī)器人服務(wù)差 濟(jì)源電話外呼系統(tǒng)怎么樣 電銷機(jī)器人對公司貢獻(xiàn) 高德地圖標(biāo)注在建線路 蘭州語音電銷機(jī)器人軟件 智能外呼系統(tǒng)如何部署 山東400電話如何辦理 宿州防封外呼系統(tǒng)廠家

直接拉取鏡像,創(chuàng)建容器并運(yùn)行容器一把梭哈:

docker run -d --restart=always \

--privileged=true \

--net=host \

--name=fastdfs \

-e IP=192.168.149.128 \

-e WEB_PORT=80 \

-v ${HOME}/fastdfs:/var/local/fdfs registry.cn-beijing.aliyuncs.com/tianzuo/fastdfs

其中-v ${HOME}/fastdfs:/var/local/fdfs是指:

將${HOME}/fastdfs這個目錄掛載到容器里的/var/local/fdfs這個目錄里。

所以上傳的文件將被持久化到${HOME}/fastdfs/storage/data里,

IP 后面是自己的服務(wù)器公網(wǎng)ip或者虛擬機(jī)ip,-e WEB_PORT=80 指定nginx端口

訪問容器:

docker exec -it fastdfs /bin/bash

追加文本信息到index.html文件中

echo "Hello FastDFS!">>index.html

上傳此文件?

fdfs_test /etc/fdfs/client.conf upload index.html

打印了一段信息:

This is FastDFS client test program v5.12

Copyright (C) 2008, Happy Fish / YuQing

FastDFS may be copied only under the terms of the GNU General
Public License V3, which may be found in the FastDFS source kit.
Please visit the FastDFS Home Page http://www.csource.org/ 
for more detail.

[2020-08-12 17:35:41] DEBUG - base_path=/var/local/fdfs/storage, connect_timeout=30, network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0, use_connection_pool=0, g_connection_pool_max_idle_time=3600s, use_storage_id=0, storage server id count: 0

tracker_query_storage_store_list_without_group: 
  server 1. group_name=, ip_addr=我的ip, port=23000

group_name=group1, ip_addr=我的ip, port=23000
storage_upload_by_filename
group_name=group1, remote_filename=M00/00/00/rBEAB180KG2Ab6N2AAAAHhkaK9M13.html
source ip address: 172.17.0.7
file timestamp=2020-08-12 17:35:41
file size=30
file crc32=421145555
example file url: http://我的ip/group1/M00/00/00/rBEAB180KG2Ab6N2AAAAHhkaK9M13.html
storage_upload_slave_by_filename
group_name=group1, remote_filename=M00/00/00/rBEAB180KG2Ab6N2AAAAHhkaK9M13_big.html
source ip address: 172.17.0.7
file timestamp=2020-08-12 17:35:41
file size=30
file crc32=421145555
example file url: http://我的ip/group1/M00/00/00/rBEAB180KG2Ab6N2AAAAHhkaK9M13_big.html

根據(jù)提示生成的地址就可以訪問到了

以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

標(biāo)簽:云南 安陽 晉中 巴中 畢節(jié) 南寧 佛山 衡水

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《Docker容器搭建并運(yùn)行實現(xiàn)過程詳解》,本文關(guān)鍵詞  Docker,容器,搭建,并,運(yùn)行,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《Docker容器搭建并運(yùn)行實現(xiàn)過程詳解》相關(guān)的同類信息!
  • 本頁收集關(guān)于Docker容器搭建并運(yùn)行實現(xiàn)過程詳解的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 长岛县| 凤翔县| 静宁县| 张家港市| 蓬溪县| 漯河市| 汕尾市| 台江县| 郁南县| 土默特左旗| 东光县| 东海县| 昭平县| 石城县| 玛纳斯县| 宿州市| 通辽市| 诏安县| 陈巴尔虎旗| 睢宁县| 阿荣旗| 龙井市| 达孜县| 化隆| 兴城市| 梅河口市| 肇东市| 潢川县| 甘德县| 永州市| 成都市| 广德县| 宜阳县| 江达县| 文登市| 海丰县| 鸡东县| 绥宁县| 石屏县| 叙永县| 额济纳旗|