LoginSignup
1
1

More than 5 years have passed since last update.

Python環境をDockerを用いて整えてみた

Last updated at Posted at 2019-02-01

環境:MacOS 10.12.6

前準備

公式サイトからDockerをインストール

きちんとインストールされたか確認します。

$ docker --version
Docker version 18.03.1-ce, build 9ee9f40
$ which docker
/usr/local/bin/docker

入ってますね。

次にimageをpullします。

$ docker pull python:3.7
Status: Downloaded newer image for python:3.7

この表示が出たらsuccessです。場合に応じてコマンドの頭にsudoをつけてください。

コンテナを起動する

$ docker run -it --name pydock python:3.7 /bin/bash

環境が整ったことを確認します。

$ python --version
Python 3.7.0

SUCCCESS!!

# apt-get update
# apt-get install -y vim
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1