Build a docker container for a python simple web server

Base Docker Image This time, I used "centos / sysctct" image as Base.

1. Check docker images

$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
centos/systemd      latest              05d3c1e2d0c1        7 weeks ago         202MB

2. Start docker images

$ docker run -d 05d3c1e2d0c
0bdf202c5dcbad38df131860681ca5aa604b46ded37837b3a6c18f56665a6871
$ docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
0bdf202c5dcb        05d3c1e2d0c1        "/usr/sbin/init"    8 seconds ago       Up 7 seconds                            sleepy_tu

3. Log in to the container

$ docker exec -it 0bdf202c5dcb bash
[root@0bdf202c5dcb /]#

4. Various settings, etc.

Confirmation

[root@0bdf202c5dcb ~]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)

[root@0bdf202c5dcb ~]# uname -a
Linux 0bdf202c5dcb 3.10.0-957.5.1.el7.x86_64 #1 SMP Fri Feb 1 14:54:57 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Recommended Posts

Build a docker container for a python simple web server
Build a container for Docker x Laravel phpMyAdmin
Create a Docker container for your development web server in Ansible on MacOS
Build a simple Docker + Django development environment
Created a Docker container image for an OpenLDAP server based on Fedora
Build a development environment for Docker + Rails6 + Postgresql
Build a Kotlin app using OpenJDK's Docker container
Build a simple Docker Compose + Django development environment
Build a development environment for Docker, java, vscode
[Note] Build a Python3 environment with Docker in EC2
[2021] Build a Docker + Vagrant environment for using React / TypeScript
Allows you to specify a proxy server to use for apt communication during docker build
Build a container that automatically formats Docker x Laravel code
Implement a simple Web REST API server with Spring Boot + MySQL
Create a simple web server with the Java standard library com.sun.net.httpserver
Build a Node.js environment with Docker
I created a Docker image of a container for learning OpenAI Gym
Build a SPA for Laravel 6.2 / Vue.js / Nginx / Mysql / Redis with Docker
Run React on a Docker container
Build a Minecraft server on AWS
Build a web application with Javalin
Run PureScript on a Docker container
Build a development environment for Django + MySQL + nginx with Docker Compose
Build a container version of Minecraft server and use https-enabled Dynmap
docker single container restart for myself
Create a fluentd server for testing
Build WebRTC Janus with Docker container
About Docker, disguise server and container
Build a web application development environment that uses Java, MySQL, and Redis with Docker CE for Windows
Build debug environment on container --Build local development environment for Rails tutorial with Docker-
How to build a Ruby on Rails environment using Docker (for Docker beginners)
Creating a java web application development environment with docker for mac part1
Build a local development environment for Rails tutorials with Docker (Rails 6 + PostgreSQL + Webpack)
Template: Build a Ruby / Rails development environment with a Docker container (Ubuntu version)
Create a java web application development environment with docker for mac part2
Template: Build a Ruby / Rails development environment with a Docker container (Mac version)
Create a web environment quickly using Docker
Create a simple web application with Dropwizard
Build a PureScript development environment with Docker
Build a WAS execution environment from Docker
Quick build maven project using maven docker container
Build an authentication proxy server using Docker
[docker] [nginx] Make a simple ALB with nginx
Build a Wordpress development environment with Docker
Docker container build fails to install php-radis
A simple and convenient method for HashMap
Build by specifying docker as a file
Build Web Application Server (Java) on VPS
How to build a Jenkins server with a Docker container on CentOS 7 of VirtualBox and access the Jenkins server from a local PC
A story about Java 11 support for Web services
How to get a heapdump from a Docker container
Build a Laravel / Docker environment with VSCode devcontainer
Build a WordPress development environment quickly with Docker
Build a streaming server on your iOS app
I made a Docker container to run Maven
A collection of simple questions for Java beginners
I tried running Ansible on a Docker container
Repository structure for one-touch build of Node-RED container
Docker Container Operations with Docker-Client API for Java
Create a web api server with spring boot
Docker Container pull has a rate limit enforced