๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

DevOps

Docker MariaDB container ์‹คํ–‰ ๋ฐฉ๋ฒ•

๐Ÿ™‚ mariaDB login

๐Ÿš› mariadb ๋กœ๊ทธ์ธ ๋ฐฉ๋ฒ• (docker mariadb ์—์„œ ์‹คํ–‰)

mysql -u root -p


๐Ÿš› database ๋ณ€ํ™˜

MariaDB [mysql]> use {์‚ฌ์šฉํ•  DB ์ด๋ฆ„๋ฆ„}
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed

 

๐Ÿ™‚ docker mariadb image

๐Ÿš› docker image ์ค‘์ง€์‹คํ–‰ ๋ฐฉ๋ฒ•

docker stop {mariadb image ์ด๋ฆ„}
docker restart {mariadb image ์ด๋ฆ„}

 

๐Ÿš› docker์—์„œ ์‹คํ–‰ ์ค‘์ธ image ๋ณด๋Š” ๋ฐฉ๋ฒ•

~$ docker ps
CONTAINER ID   IMAGE                       COMMAND                  CREATED         STATUS      PORTS   NAMES
{mariadb container ID}   mariadb:1.1.1.1             "docker-entrypoint.s…"   2 months ago    Up 18 minutes   0.0.0.0:13306->3306/tcp, :::13306->3306/tcp   {mariadb image ์ด๋ฆ„}

 

๐Ÿš› docker mariadb image ์ ‘์† ๋ฐฉ๋ฒ•

~$ docker exec -it {mariadb container ID} bash
root@{mariadb container ID}:

'DevOps' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

Jenkins Pipeline / Pipeline Script ์ž‘์„ฑ  (2) 2020.12.09
Jenkins ์‚ฌ์šฉ๋ฒ• / Jenkins Pipeline  (2) 2020.12.09