qdyxmas's Room

Done is better than perfect...

CentOS7安装Docker python36的环境

CentOS7安装Docker python36的环境

1.安装docker

yum install -y docker  #安装docker
systemctl start docker #开启docker服务
docker pull python:3.6  #拉取python3.6的环境,没有其他的库的内容

2.配置Dockerfile文件 FORM python:3.6

RUN mkdir /python36_docker
WORKDIR /python36_docker
COPY requirements.txt /python36_docker/requirements.txt

RUN pip3 install virtualenv
RUN source bin/activate
RUN pip3 install requests
RUN pip3 install -r requirements.txt

3.创建docker images

docker build -t docker_python .

4.运行docker images

docker run  -itd docker_python:latest

5.进入容器

docker ps #查看启动的容器,选择启动的docker_python:latest的容器好进入
docker attach 9a90107e2003

参考链接:https://blog.csdn.net/qq_22211217/article/details/80414227 https://www.cnblogs.com/xuanmanstein/p/7630606.html https://baijiahao.baidu.com/s?id=1589924250945546299&wfr=spider&for=pc https://www.cnblogs.com/xhyan/p/6593075.html

标签 

17 评论

  1. TpxNW
    /回复

    Medicament information for patients. Short-Term Effects. <a href="https://pregabalininfo.top">cost of cheap lyrica without prescription</a> in US All news about meds. Get information here.

  2. JaniceWeS
    /回复

    cialis 5mg price comparison <a href="https://mycialistabs.com/">cialis free trial coupon</a> viagra cialis levitra

  3. TiffanyreD
    /回复

    brand cialis <a href="https://toptadalafiltabs.com/">when does cialis patent expire</a> what is cialis for

  4. TiffanyreD
    /回复

    where to buy cialis <a href="https://toptadalafiltabs.com/">tadalafil peptide</a> is generic cialis available

  5. Stellavam
    /回复

    how to write and/or in an essay <a href="https://topessaywriterfas.com/">essay on college education</a> write college essay yourself

  6. RebeccaMew
    /回复

    goods and service tax essay in hindi <a href="http://writemyessayslfd.com/">online essay writing services</a> writing an autobiographical essay

  7. FrancesHix
    /回复

    sildenafil citrate 100mg <a href="https://mrviagrashop.com">viagra over the counter</a> generic viagra cost

  8. Martinanulse
    /回复

    viagra triangle chicago <a href="https://mysildenafilkr.com/">roman sildenafil</a> viagra over the counter walmart

  9. HdsUE
    /回复

    objective for a resume <a href="http://coverletterforresumetop.com/">writing a good cover letter</a> mechanical engineer resume

  10. Kathryngogue
    /回复

    is there a generic cialis available in the us <a href="http://tadalafilled.com/">tadalafil online pharmacy</a> price of cialis

  11. LipMX
    /回复

    sales manager resume <a href="https://writingacoverletteronline.com/">resume services</a> engineer resume

  12. ZbmLJ
    /回复

    sildenafil price <a href="https://edviagramaster.net/">viagra connect cvs</a> viagra para mujeres

  13. UgrSU
    /回复

    canadian pharmacy ezzz viagra <a href="https://sildenafilviagratop.com">viagra fuck</a> sildenafil online

  14. UnaNR
    /回复

    cialis from canada to usa <a href="https://cialisortadalafil.com/">cialis no prescription</a> cvs cialis over the counter

  15. NsjRC
    /回复

    cialis otc 2017 <a href="https://topcialistabs.com/">cialis and viagra</a> who makes cialis

  16. CharlesVex
    /回复

    “I haven’t seen you in these parts,” the barkeep said, sidling over and above to where I sat. “Designation’s Bao.” He stated it exuberantly, as if low-down of his exploits were shared by way of settlers about assorted a verve in Aeternum. He waved to a expressionless hogshead apart from us, and I returned his token with a nod. He filled a field-glasses and slid it to me across the stained red wood of the excluding prior to continuing. “As a betting man, I’d be willing to wager a fair bit of coin you’re in Ebonscale Reach for more than the wet one's whistle and sights,” he said, eyes glancing from the sword sheathed on my hip to the capitulate slung across my back. http://www.google.bt/url?q=https://renewworld.ru/new-world-kak-popast-na-alfa-i-beta-testy/

  17. CharlesVex
    /回复

    “I haven’t seen you in these parts,” the barkeep said, sidling over to where I sat. “Designation’s Bao.” He stated it exuberantly, as if say of his exploits were shared aside settlers around many a firing in Aeternum. He waved to a wooden keg hard by us, and I returned his token with a nod. He filled a eyeglasses and slid it to me across the stained red wood of the excluding before continuing. “As a betting houseman, I’d be assenting to wager a honourable bit of invent you’re in Ebonscale Reach on the side of more than the wet one's whistle and sights,” he said, eyes glancing from the sword sheathed on my cool to the salaam slung across my back. http://images.google.com.qa/url?q=https://renewworld.ru/otlichie-new-world-versii-deluxe-i-standart-edition/

评论