python環境

Last-modified: 2020-05-20 (水) 13:40:08

python3.6イメージのダウンロード

docker pull python:3.6

実行例

docker pull python:3.6
3.6: Pulling from library/python
376057ac6fa1: Pull complete                                                                                                                5a63a0a859d8:
Pull complete                                                                                                                496548a8c952: Pull complete
2adae3950d4d: Pull complete                                                                                                                0ed5a9824906:
Pull complete                                                                                                                5b382e7c893f: Pull complete
caceeaa356b1: Pull complete                                                                                                                3042686705e2:
Pull complete                                                                                                                9ee0bf59b9af: Pull complete
Digest: sha256:5ad282921c5b8d811a8c589f4ee0d52ebfc98b5c88b9e098b8f1543f2ec64cc1
Status: Downloaded newer image for python:3.6
docker.io/library/python:3.6
docker run -it --name pytest python:3.6 /bin/bash

実行例

docker run -it --name pytest python:3.6 /bin/bash
root@51a05c1ced63:/#