function__fish_docker_no_subcommand--description'Test if docker has yet to be given the subcommand'
foriin(commandline-opc)
ifcontains-- $i attach build commit cp diff events export history images import info insert inspect kill load login logs port ps pull push restart rm rmi run save search start stop tag top version wait
return1
end
end
return0
end
function__fish_print_docker_containers--description'Print a list of docker containers'-a select
complete-c docker -f-n'__fish_docker_no_subcommand'-s D -l debug -d'Enable debug mode'
complete-c docker -f-n'__fish_docker_no_subcommand'-s H -l host -d'tcp://host:port, unix://path/to/socket, fd://* or fd://socketfd to use in daemon mode. Multiple sockets can be specified'
complete-c docker -f-n'__fish_docker_no_subcommand'-l api-enable-cors -d'Enable CORS headers in the remote API'
complete-c docker -f-n'__fish_docker_no_subcommand'-s b -l bridge -d"Attach containers to a pre-existing network bridge; use 'none' to disable container networking"
complete-c docker -f-n'__fish_docker_no_subcommand'-l bip -d"Use this CIDR notation address for the network bridge's IP, not compatible with -b"
complete-c docker -f-n'__fish_docker_no_subcommand'-s d -l daemon -d'Enable daemon mode'
complete-c docker -f-n'__fish_docker_no_subcommand'-l dns -d'Force docker to use specific DNS servers'
complete-c docker -f-n'__fish_docker_no_subcommand'-s g -l graph -d'Path to use as the root of the docker runtime'
complete-c docker -f-n'__fish_docker_no_subcommand'-l ip -d'Default IP address to use when binding container ports'
complete-c docker -f-n'__fish_docker_no_subcommand'-l ip-forward -d'Disable enabling of net.ipv4.ip_forward'
complete-c docker -f-n'__fish_docker_no_subcommand'-l iptables -d"Disable docker's addition of iptables rules"
complete-c docker -f-n'__fish_docker_no_subcommand'-l mtu -d'Set the containers network MTU; if no value is provided: default to the default route MTU or 1500 if not default route is available'
complete-c docker -f-n'__fish_docker_no_subcommand'-s p -l pidfile -d'Path to use for daemon PID file'
complete-c docker -f-n'__fish_docker_no_subcommand'-s r -l restart -d'Restart previously running containers'
complete-c docker -f-n'__fish_docker_no_subcommand'-s s -l storage-driver -d'Force the docker runtime to use a specific storage driver'
complete-c docker -f-n'__fish_docker_no_subcommand'-s v -l version -d'Print version information and quit'
# subcommands
# attach
complete-c docker -f-n'__fish_docker_no_subcommand'-a attach -d'Attach to a running container'
complete-c docker -A-f-n'__fish_seen_subcommand_from attach'-l no-stdin -d'Do not attach stdin'
complete-c docker -A-f-n'__fish_seen_subcommand_from attach'-l sig-proxy -d'Proxify all received signal to the process (even in non-tty mode)'
complete-c docker -A-f-n'__fish_seen_subcommand_from build'-l rm -d'Remove intermediate containers after a successful build'
complete-c docker -A-f-n'__fish_seen_subcommand_from build'-s t -l tag -d'Repository name (and optionally a tag) to be applied to the resulting image in case of success'
# commit
complete-c docker -f-n'__fish_docker_no_subcommand'-a commit -d"Create a new image from a container's changes"
complete-c docker -A-f-n'__fish_seen_subcommand_from commit'-s a -l author -d'Author (eg. "John Hannibal Smith <hannibal@a-team.com>"'
complete-c docker -A-f-n'__fish_seen_subcommand_from commit'-s m -l message -d'Commit message'
complete-c docker -A-f-n'__fish_seen_subcommand_from commit'-l run -d'Config automatically applied when the image is run. (ex: --run=\'{"Cmd": ["cat", "/world"], "PortSpecs": ["22"]}\')'
complete-c docker -A-f-n'__fish_seen_subcommand_from images'-s a -l all -d'show all images (by default filter out the intermediate images used to build)'
complete-c docker -f-n'__fish_docker_no_subcommand'-a restart -d'Restart a running container'
complete-c docker -A-f-n'__fish_seen_subcommand_from restart'-s t -ltime-d'Number of seconds to try to stop for before killing the container. Once killed it will then be restarted. Default=10'
complete-c docker -A-f-n'__fish_seen_subcommand_from run'-s m -l memory -d'Memory limit (format: <number><optional unit>, where unit = b, k, m or g)'
complete-c docker -A-f-n'__fish_seen_subcommand_from run'-s n -l networking -d'Enable networking for this container'
complete-c docker -A-f-n'__fish_seen_subcommand_from run'-l name -d'Assign a name to the container'
complete-c docker -A-f-n'__fish_seen_subcommand_from run'-s p -l publish -d"Publish a container's port to the host (format: ip:hostPort:containerPort | ip::containerPort | hostPort:containerPort) (use 'docker port' to see the actual mapping)"
complete-c docker -A-f-n'__fish_seen_subcommand_from run'-l privileged -d'Give extended privileges to this container'
complete-c docker -A-f-n'__fish_seen_subcommand_from run'-l rm -d'Automatically remove the container when it exits (incompatible with -d)'
complete-c docker -A-f-n'__fish_seen_subcommand_from run'-l sig-proxy -d'Proxify all received signal to the process (even in non-tty mode)'
complete-c docker -A-f-n'__fish_seen_subcommand_from run'-s t -l tty -d'Allocate a pseudo-tty'
complete-c docker -A-f-n'__fish_seen_subcommand_from run'-s u -l user -d'Username or UID'
complete-c docker -A-f-n'__fish_seen_subcommand_from run'-s v -l volume -d'Bind mount a volume (e.g. from the host: -v /host:/container, from docker: -v /container)'
complete-c docker -A-f-n'__fish_seen_subcommand_from run'-l volumes-from -d'Mount volumes from the specified container(s)'
complete-c docker -A-f-n'__fish_seen_subcommand_from run'-s w -l workdir -d'Working directory inside the container'