~ 寫在正文之前:文章轉(zhuǎn)移到翻這個墻中逛裤,希望繼續(xù)關(guān)注啦瘩绒。(2017.11.5)
前言
更多信息請參考:http://www.widuu.com/chinese_docker/
安裝
windows系統(tǒng)和mac系統(tǒng)
推薦直接在官網(wǎng)下載對應(yīng)的exe。更詳細(xì)的請參考這里
centos64
yum install docker
ubuntu
apt-get install docker
docker管理
問題1:Cannot connect to the Docker daemon. Is the docker daemon running on this host?
一般來說這種問題带族,可能是docker服務(wù)沒有啟動锁荔,應(yīng)該先啟動“service docker start”
我的經(jīng)驗(yàn)
pyspider
1、 pyspider是一個用python寫的爬蟲框架蝙砌,自帶Web UI
2堕战、 官網(wǎng)提供了兩種安裝的方式,一種是pip拍霜,一種是docker嘱丢。
由于pip遇到了“ImportError: pycurl: libcurl link-time ssl backend (nss) is different from compile-time ssl backend (openssl)”的問題。所以忽略這種情況祠饺。在安裝工具的時候越驻,系統(tǒng)問題是層出不同的,而且是這些問題對我是沒有意義的道偷。
docker缀旁,讓你忽略所有系統(tǒng)的問題,直接獲取一個健壯的可行的系統(tǒng)勺鸦,這就是docker最大的魅力所在并巍!這是官網(wǎng)docker的使用教程
splash
1、 splash是一個用于實(shí)現(xiàn)爬取過程中實(shí)現(xiàn)js解析的一個工具换途。
docker run -p 5023:5023 -p 8050:8050 -p 8051:8051 scrapinghub/splash
zabbix
docker run -d \ -p 10051:10051 \ -p 10052:10052 \ -p 80:80 \ -p 2812:2812 \ --name zabbix \ berngp/docker-zabbix
參考:http://www.tuicool.com/articles/MFrAZf6