MyTetra Share
Делитесь знаниями!
Вывести только определенные столбцы docker ps
Время создания: 13.09.2018 13:16
Автор: br0ke
Текстовые метки: docker, ps, output, columns, column, format
Раздел: Информационные технологии - Linux - Docker
Запись: and-semakin/mytetra_data/master/base/153682660904kuunxd2s/text.html на raw.githubusercontent.com

Флаг --format:



Placeholder

Description

.ID

Container ID

.Image

Image ID

.Command

Quoted command

.CreatedAt

Time when the container was created.

.RunningFor

Elapsed time since the container was started.

.Ports

Exposed ports.

.Status

Container status.

.Size

Container disk size.

.Names

Container names.

.Labels

All labels assigned to the container.

.Label

Value of a specific label for this container. For example '{{.Label "com.docker.swarm.cpu"}}'

.Mounts

Names of the volumes mounted in this container.

.Networks

Names of the networks attached to this container.



Примеры:


docker ps --format "{{.ID}}\t{{.RunningFor}}\t{{.Image}}"



docker ps --format "{{.ID}}: {{.Command}}"

Так же в этом разделе:
 
MyTetra Share v.0.59
Яндекс индекс цитирования