qdyxmas's Room

Done is better than perfect...

CentOS7安装Docker python36的环境

CentOS7安装Docker python36的环境


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


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


15 评论

  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