카타코더 Docker - Deploying Your First Docker Container

1 개요[ | ]

카타코더 Docker - Deploying Your First Docker Container
카타코더 Docker
# 🔗 제목
카타코더 Docker/1 e
🡵 카타코더 Docker - Deploying Your First Docker Container
🡵 카타코더 Docker - Deploy Static HTML Website as Container
🡵 카타코더 Docker - Building Container Images
🡵 카타코더 Docker - Dockerizing Node.js
🡵 카타코더 Docker - Optimise Builds With Docker OnBuild
🡵 카타코더 Docker - Ignoring Files During Build
🡵 카타코더 Docker - Create Data Containers
🡵 카타코더 Docker - Creating Networks Between Containers using Links
🡵 카타코더 Docker - Creating Networks Between Containers using Networks
🡵 카타코더 Docker - Persisting Data Using Volumes

2 컨테이너 실행하기[ | ]

$ docker search redis
NAME                             DESCRIPTION                                     STARS               OFFICIAL            AUTOMATED
redis                            Redis is an open source key-value store that…  6669                [OK]
bitnami/redis                    Bitnami Redis Docker Image                      107                                     [OK]
sameersbn/redis                                                                  76                                      [OK]
grokzen/redis-cluster            Redis cluster 3.0, 3.2, 4.0 & 5.0               44
hypriot/rpi-redis                Raspberry Pi compatible redis image             33
kubeguide/redis-master           redis-master with "Hello World!"                28
rediscommander/redis-commander   Alpine image for redis-commander - Redis man…  21                                      [OK]
redislabs/redis                  Clustered in-memory database engine compatib…  19
redislabs/redisearch             Redis With the RedisSearch module pre-loaded…  15
arm32v7/redis                    Redis is an open source key-value store that…  14
oliver006/redis_exporter          Prometheus Exporter for Redis Metrics. Supp…  10
webhippie/redis                  Docker images for Redis                         10                                      [OK]
insready/redis-stat              Docker image for the real-time Redis monitor…  7                                       [OK]
s7anley/redis-sentinel-docker    Redis Sentinel                                  7                                       [OK]
rtoma/logspout-redis-logstash    Logspout including Redis adapter for sending…  5
arm64v8/redis                    Redis is an open source key-value store that…  5
centos/redis-32-centos7          Redis in-memory data structure store, used a…  4
redislabs/redisgraph             A graph database module for Redis               4                                       [OK]
wodby/redis                      Redis container image with orchestration        2                                       [OK]
frodenas/redis                   A Docker Image for Redis                        2                                       [OK]
circleci/redis                   CircleCI images for Redis                       2                                       [OK]
tiredofit/redis                  Redis Server w/ Zabbix monitoring and S6 Ove…  1                                       [OK]
cflondonservices/redis           Docker image for running redis                  0
xetamus/redis-resource           forked redis-resource                           0                                       [OK]
iadvize/redis                                                                    0
$ docker run -d redis
479640f6f49eb99b76b27a5682bd78c1b352eff34dbf0345205e50b18eef0f8f

3 실행중인 컨테이너 조회하기[ | ]

$ docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS               NAMES
479640f6f49e        redis               "docker-entrypoint.s…"  33 seconds ago      Up 31 seconds       6379/tcp            cocky_davinci
docker inspect <friendly-name|container-id>
docker logs <friendly-name|container-id>

4 Redis 포트 연결[ | ]

$ docker run -d --name redisHostPort -p 6379:6379 redis:latest
03aa596dab5926d55d1edeac390f2cc4edf1f0ea5455b2a6ecdb9916e0acb367
$ docker run -d --name redisDynamic -p 6379 redis:latest
c2da875a425beec94797d623f9bdd25930a8dfbfae387c943e00f34cd263298c
$ docker port redisDynamic 6379
0.0.0.0:32768
$ docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED              STATUS              PORTS                     NAMES
c2da875a425b        redis:latest        "docker-entrypoint.s…"  24 seconds ago       Up 23 seconds       0.0.0.0:32768->6379/tcp   redisDynamic
03aa596dab59        redis:latest        "docker-entrypoint.s…"  About a minute ago   Up 59 seconds       0.0.0.0:6379->6379/tcp    redisHostPort
479640f6f49e        redis               "docker-entrypoint.s…"  2 minutes ago        Up 2 minutes        6379/tcp                  cocky_davinci

5 데이터 보존[ | ]

$ docker run -d --name redisMapped -v /opt/docker/data/redis:/data redis
0324a5db59029c399e7fb31b90c6f93a529957719d13e499e5c224aa3fe1af63

6 포어그라운드로 컨테이너 실행하기[ | ]

$ docker run ubuntu ps
  PID TTY          TIME CMD
    1 ?        00:00:00 ps
$ docker run -it ubuntu bash
root@d22674823a53:/#

7 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}