블로그 이미지
Flying Mr.Cheon youGom

Recent Comment»

Recent Post»

Recent Trackback»

« 2024/5 »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

Docker Configuration

서버/Infra | 2023. 5. 11. 17:04 | Posted by youGom

It is not typing any korean might be in ubuntu of the language problem on utf8.
This is contents only my log how to get checking docker default.
It's terrible to set the python version virutal environment up. this docker system would rather that?

This is default configuration method and summary; Docker Configurations

* Below links are almost entry point: https://docs.docker.com/language/python/build-images/

Contents.
1. Install Docker
    - The docker document site shows to install the docker-gui at first, but it should install the docker-cli in middle contents;
    ( docker-install[gui] - link , docker-cert[ca] - link , docker-install[cli] - link )
2. Docker run: image 'hello world'
    - It is very simple command like 'docker run docker-hello' for getting check or verify the docker-package.
3. Docker Image Pull: Python3.6 slim buster - (list)link
    - The docker document shows python 3.8, but trying to version of 3.6; python 3.6 image link
4. Docker Image Control: Flask 'hello world'
    - Build, Tag - link
    - Run, Stop, Remove, View List - link
    - Finally command: docker run -d -p 8000:5000 --name rest-server python_image
5. Docker Image Control: Mysql 'hello world', link
    - To meet some error; mysql-connector (had been installed by pip3 (python3.6))
    - To reset python version to 3.8 from 3.6, and to restart generating from 'python3 -m venv .venv' for the first time.
    - Getting Experience; docker network, volume and compose by yaml file; docker-compose.dev.yml
6. CI/CD: GitHub actions - link
    - Create workflow yaml file
7. Deploy: Azure, ECS, EKS - link
    - It would refer any page to be meet a environment of the infras, or the IaaS provider would provide us more information.

 

Notes.
1. Hope to use the docker command line without 'sudo ...' like 'sudo docker ...'
   $ sudo usermod -aG docker $USER
   - To run docker command without 'sudo' after logout, or 'sudo su -l $USER'

'서버 > Infra' 카테고리의 다른 글

[Infra] LoadBalancer Haproxy Install  (0) 2018.03.20
: