Start docker
systemctl start docker
docker 启动python
- docker images
# docker images REPOSITORY TAG IMAGE ID CREATED SIZE python 3.6 1297140c6dd2 8 days ago 874MB mysql 5.7 1b12f2e9257b 2 weeks ago 448MB
-
进入python 3.6中
root@hongkongapi:/# docker run -it -v /example_app/:/mnt/example python:3.6 /bin/bash root@c068513851ff:/#
-
root@c068513851ff:/# python Python 3.6.12 (default, Oct 13 2020, 21:36:54) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>>