Docker Hub official website 1. Search for Python mirror 2. Pull the Python image docker pull python 3. Check the image after downloading is complete docker images 4. Run the python image docker run -itd python:latest bash 5. Enter the container docker exec -it 6a55 bash # 6a55 is the container id obtained after docker ps checks the python image startup. You can get the complete container id 6. Check the Python version 7. This python image is the base images. All the crawler images I made later are based on this image. 8. The docker commands used are as follows: docker commit -m='scrapyd' -a='spider' 6a55 scrapyd/python3.8.3:v1 9. Since it is a base image, you need to install some common commands apt-get update apt-get install lrzsz -y# Please Baidu for the function of lrzsz apt-get install vim -y #Must install the artifact, hehe pip install -i https://pypi.douban.com/simple ipython apt-get install net-tools cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 13. Start production docker commit -m="base images" -a="spider" 6a55392dba72 python3.8.3:base-images If a long string of sha256 appears, it is successful. 15. Run the created image This is the end of this article about installing python3.8 image in docker. For more information about installing python3.8 image in docker, please search previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Implementation of a simple login page for WeChat applet (with source code)
>>: Use jQuery to fix the invalid page anchor point problem under iframe
environment Hostname IP address Serve Prometheus ...
This article shares the specific code of JavaScri...
This article shares the specific code of javascri...
Table of contents 1. View the storage engine of t...
Table of contents 1. How are structures stored in...
Basic Use <!DOCTYPE html> <html lang=&qu...
Table of contents 1. In project development, the ...
Table of contents 1. Synchronization Principle 2....
Table of contents 1. Install axios 2. Use of axio...
MySQL 5.7.18 installation and problem summary. I ...
difficulty Two mask creation of svg graphics Firs...
Table of contents Preface 1. Set the prototype on...
I’ve always preferred grayscale images because I t...
MySQL 5.7.27 detailed download, installation and ...
Using mock.js in Vue project Development tool sel...