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 Fix mention of at sign in docs 2016-02-05 16:47:57 -05:00
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 remove =false from options that default to false in the docs 2015-12-23 07:11:35 -08:00
docker_images.gif
events.md Fix some flaws in docs 2016-02-19 09:27:03 +08:00
exec.md Implement configurable detach key 2016-01-03 23:03:39 +01:00
export.md Creating Engine specific menu 2016-01-26 15:58:53 -08:00
history.md remove =false from options that default to false in the docs 2015-12-23 07:11:35 -08:00
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 Creating Engine specific menu 2016-01-26 15:58:53 -08:00
info.md Add insecure registries to docker info 2016-03-31 08:27:24 +02:00
inspect.md fixed typo 2016-01-22 09:27:53 +02:00
kill.md remove =false from options that default to false in the docs 2015-12-23 07:11:35 -08:00
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 remove =false from options that default to false in the docs 2015-12-23 07:11:35 -08:00
logs.md remove =false from options that default to false in the docs 2015-12-23 07:11:35 -08:00
network_connect.md fix common misspell 2016-02-11 15:49:36 -08:00
network_create.md docs for labels on build, networks and volumes 2016-03-25 11:16:19 -07:00
network_disconnect.md Forced endpoint cleanup 2016-01-13 21:28:52 -08:00
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 remove =false from options that default to false in the docs 2015-12-23 07:11:35 -08:00
port.md Fix the typo in ps 2016-01-21 04:26:49 +00:00
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 remove =false from options that default to false in the docs 2015-12-23 07:11:35 -08:00
restart.md remove =false from options that default to false in the docs 2015-12-23 07:11:35 -08:00
rm.md Fix some flaws in docs 2016-02-19 09:27:03 +08:00
rmi.md Correct old virtual size 2016-02-02 12:28:33 +00:00
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 Creating Engine specific menu 2016-01-26 15:58:53 -08:00
start.md Implement configurable detach key 2016-01-03 23:03:39 +01:00
stats.md Change HumanSize to BytesSize for memory output in docker stats. 2016-04-08 20:01:50 +00:00
stop.md remove =false from options that default to false in the docs 2015-12-23 07:11:35 -08:00
tag.md Creating Engine specific menu 2016-01-26 15:58:53 -08:00
top.md remove =false from options that default to false in the docs 2015-12-23 07:11:35 -08:00
unpause.md remove =false from options that default to false in the docs 2015-12-23 07:11:35 -08:00
update.md Update RestartPolicy of container 2016-02-20 17:06:32 +08:00
version.md remove =false from options that default to false in the docs 2015-12-23 07:11:35 -08:00
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 add a section to each volume page 2016-02-18 21:52:15 +02:00
wait.md remove =false from options that default to false in the docs 2015-12-23 07:11:35 -08:00