作ったツール類をコンテナにまとめてしまえばいろいろ便利と耳にしたので、以前から気になっていたDockerを使い始めることにしました。 今回は、pythonのflaskで作ったwebサーバをコンテナ化し、コンテナの起動・停止だけでwebサーバを管理できるようにしてみようと思います。 使用した環境はこちら $ cat /etc/redhat-release Red Hat Enterprise Linux release 8.2 (Ootpa) $ docker --version Docker version 19.03.12, build 48a66213fe ※ 余談ですが、CentOS 8でDockerをインストールしようとすると containerd.io が無いぞって言われることがあるようです。私の場合はこちらで無事解決できましたので参考までに。 Dockerおさらい まずはDoc