1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/docs/reference/commandline
Kai Qiang Wu(Kennan) f812b55692 Add network label filter support
This patch did following:

1) Make filter check logic same as `docker ps ` filters

Right now docker container logic work as following:
when same filter used like below:
 -f name=jack -f name=tom
it would get all containers name is jack or tom(it is or logic)

when different filter used like below:

 -f name=jack -f id=7d1
it would get all containers name is jack and id contains 7d1(it is and logic)

It would make sense in many user cases, but it did lack of compliate filter cases,
like "I want to get containers name is jack or id=7d1", it could work around use
(get id=7d1 containers' name and get name=jack containers, and then construct the
final containers, they could be done in user side use shell or rest API)

2) Fix one network filter bug which could include duplicate result
when use -f name=  -f id=, it would get duplicate results

3) Make id filter same as container id filter, which means match any string.
not use prefix match.

It is for consistent match logic

Closes: #21417

Signed-off-by: Kai Qiang Wu(Kennan) <wkqwu@cn.ibm.com>
2016-04-18 00:38:48 +00:00
..
attach.md
build.md 1.change validateNoSchema into validateNoScheme 2016-03-31 12:29:15 +08:00
cli.md docs: add $ before HOME 2016-03-12 14:11:01 +01:00
commit.md Fix some flaws in docs 2016-02-19 09:27:03 +08:00
cp.md Adds clarification to behavior of missing directories. 2016-03-03 23:41:13 +00:00
create.md Add support for setting sysctls 2016-04-12 13:37:31 -04:00
daemon.md Fixes #21701 devicemapper docs 2016-04-13 08:02:16 -07:00
diff.md
docker_images.gif
events.md Fix some flaws in docs 2016-02-19 09:27:03 +08:00
exec.md
export.md
history.md
images.md Fix the docker image --no-trunk output format 2016-04-08 08:59:59 +08:00
import.md Fix some flaws in docs 2016-02-19 09:27:03 +08:00
index.md
info.md Add insecure registries to docker info 2016-03-31 08:27:24 +02:00
inspect.md
kill.md
load.md add docs for docker load --quiet 2016-03-24 18:57:44 +01:00
login.md Merge pull request #20970 from dmcgowan/login-oauth 2016-03-14 15:49:44 +01:00
logout.md
logs.md
network_connect.md
network_create.md docs for labels on build, networks and volumes 2016-03-25 11:16:19 -07:00
network_disconnect.md
network_inspect.md Include all endpoints in network inspect object 2016-03-13 16:58:53 -07:00
network_ls.md Add network label filter support 2016-04-18 00:38:48 +00:00
network_rm.md Fix some flaws in docs 2016-02-19 09:27:03 +08:00
pause.md
port.md
ps.md Add the missed volume filter 2016-03-15 09:26:41 +00:00
pull.md Mention "docker login" in push/pull documentation 2016-03-28 17:22:41 -07:00
push.md Mention "docker login" in push/pull documentation 2016-03-28 17:22:41 -07:00
rename.md
restart.md
rm.md Fix some flaws in docs 2016-02-19 09:27:03 +08:00
rmi.md
run.md Merge pull request #20924 from Microsoft/10662-CPUResourceControls 2016-04-15 08:14:59 +02:00
save.md Update 'save' command help 2016-03-22 08:16:52 +01:00
search.md
start.md
stats.md Change HumanSize to BytesSize for memory output in docker stats. 2016-04-08 20:01:50 +00:00
stop.md
tag.md
top.md
unpause.md
update.md Update RestartPolicy of container 2016-02-20 17:06:32 +08:00
version.md
volume_create.md docs for labels on build, networks and volumes 2016-03-25 11:16:19 -07:00
volume_inspect.md Allow volume drivers to provide a Status field 2016-04-15 10:56:38 -04:00
volume_ls.md Add name/driver filter support for volume 2016-03-25 01:11:17 +00:00
volume_rm.md
wait.md