카타코더 Docker - Formatting PS Output

1 개요[ | ]

카타코더 Docker - Formatting PS Output
카타코더 Docker
# 🔗 제목
카타코더 Docker/2 e
🡵 카타코더 Docker - Manage Container Log Files
🡵 카타코더 Docker - Ensuring Container Uptime With Restart Policies
🡵 카타코더 Docker - Adding Docker Metadata & Labels
🡵 카타코더 Docker - Load Balancing Containers
🡵 카타코더 Docker - Orchestration using Docker Compose
🡵 카타코더 Docker - See Container Metrics With Docker Stats
🡵 카타코더 Docker - Creating Optimised Docker Images using Multi-Stage Builds
🡵 카타코더 Docker - Formatting PS Output
🡵 카타코더 Docker - Run Docker From Rootless Users
🡵 카타코더 Docker - Learn Docker Swarm 101
🡵 카타코더 Docker - Docker Swarm Mode Playground

2 Names and Images as Table[ | ]

$ docker run -d redis
f5e04662881ebb9bdd224ff3c986276e4b856b088467eb0954cd3ebabb7cb5f0
$ docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS               NAMES
f5e04662881e        redis               "docker-entrypoint.s…"   31 seconds ago      Up 30 seconds       6379/tcp            objective_mayer
$ docker ps --format '{{.Names}} container is using {{.Image}} image'
objective_mayer container is using redis image
$ docker ps --format 'table {{.Names}}\t{{.Image}}'
NAMES               IMAGE
objective_mayer     redis

3 List IP addresses[ | ]

$ docker ps -q | xargs docker inspect --format '{{ .Id }} - {{ .Name }}- {{ .NetworkSettings.IPAddress }}'
f5e04662881ebb9bdd224ff3c986276e4b856b088467eb0954cd3ebabb7cb5f0 - /objective_mayer - 172.18.0.2

4 같이 보기[ | ]

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