Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 01-Jun-2021 | - | ||||
testdata/ | H | 01-Jun-2021 | - | 66 | 63 | |
README.md | H A D | 01-Jun-2021 | 898 | 36 | 26 | |
build_cancel.go | H A D | 01-Jun-2021 | 391 | 17 | 12 | |
build_prune.go | H A D | 01-Jun-2021 | 1.1 KiB | 46 | 35 | |
checkpoint_create.go | H A D | 01-Jun-2021 | 458 | 15 | 10 | |
checkpoint_create_test.go | H A D | 01-Jun-2021 | 1.9 KiB | 75 | 61 | |
checkpoint_delete.go | H A D | 01-Jun-2021 | 595 | 21 | 15 | |
checkpoint_delete_test.go | H A D | 01-Jun-2021 | 1.4 KiB | 56 | 46 | |
checkpoint_list.go | H A D | 01-Jun-2021 | 804 | 29 | 21 | |
checkpoint_list_test.go | H A D | 01-Jun-2021 | 1.7 KiB | 70 | 60 | |
client.go | H A D | 01-Jun-2021 | 9.7 KiB | 311 | 171 | |
client_deprecated.go | H A D | 01-Jun-2021 | 948 | 24 | 8 | |
client_mock_test.go | H A D | 01-Jun-2021 | 1.4 KiB | 54 | 42 | |
client_test.go | H A D | 01-Jun-2021 | 10.2 KiB | 375 | 307 | |
client_unix.go | H A D | 01-Jun-2021 | 334 | 10 | 4 | |
client_windows.go | H A D | 01-Jun-2021 | 267 | 8 | 4 | |
config_create.go | H A D | 01-Jun-2021 | 691 | 26 | 20 | |
config_create_test.go | H A D | 01-Jun-2021 | 1.8 KiB | 72 | 65 | |
config_inspect.go | H A D | 01-Jun-2021 | 944 | 37 | 29 | |
config_inspect_test.go | H A D | 01-Jun-2021 | 2.8 KiB | 105 | 92 | |
config_list.go | H A D | 01-Jun-2021 | 896 | 39 | 30 | |
config_list_test.go | H A D | 01-Jun-2021 | 2.7 KiB | 109 | 99 | |
config_remove.go | H A D | 01-Jun-2021 | 411 | 14 | 10 | |
config_remove_test.go | H A D | 01-Jun-2021 | 1.5 KiB | 62 | 53 | |
config_update.go | H A D | 01-Jun-2021 | 598 | 22 | 17 | |
config_update_test.go | H A D | 01-Jun-2021 | 1.7 KiB | 63 | 54 | |
container_attach.go | H A D | 01-Jun-2021 | 1.8 KiB | 58 | 29 | |
container_commit.go | H A D | 01-Jun-2021 | 1.5 KiB | 56 | 46 | |
container_commit_test.go | H A D | 01-Jun-2021 | 3.1 KiB | 98 | 91 | |
container_copy.go | H A D | 01-Jun-2021 | 4 KiB | 104 | 71 | |
container_copy_test.go | H A D | 01-Jun-2021 | 8.9 KiB | 277 | 255 | |
container_create.go | H A D | 01-Jun-2021 | 1.9 KiB | 64 | 48 | |
container_create_test.go | H A D | 01-Jun-2021 | 3.7 KiB | 120 | 106 | |
container_diff.go | H A D | 01-Jun-2021 | 674 | 24 | 17 | |
container_diff_test.go | H A D | 01-Jun-2021 | 1.4 KiB | 62 | 56 | |
container_exec.go | H A D | 01-Jun-2021 | 2 KiB | 55 | 38 | |
container_exec_test.go | H A D | 01-Jun-2021 | 4.4 KiB | 158 | 144 | |
container_export.go | H A D | 01-Jun-2021 | 509 | 20 | 13 | |
container_export_test.go | H A D | 01-Jun-2021 | 1.3 KiB | 52 | 46 | |
container_inspect.go | H A D | 01-Jun-2021 | 1.7 KiB | 54 | 44 | |
container_inspect_test.go | H A D | 01-Jun-2021 | 3.7 KiB | 142 | 128 | |
container_kill.go | H A D | 01-Jun-2021 | 464 | 17 | 12 | |
container_kill_test.go | H A D | 01-Jun-2021 | 1.2 KiB | 48 | 42 | |
container_list.go | H A D | 01-Jun-2021 | 1.2 KiB | 58 | 42 | |
container_list_test.go | H A D | 01-Jun-2021 | 2.7 KiB | 98 | 90 | |
container_logs.go | H A D | 01-Jun-2021 | 2.1 KiB | 81 | 48 | |
container_logs_test.go | H A D | 01-Jun-2021 | 4.5 KiB | 170 | 156 | |
container_pause.go | H A D | 01-Jun-2021 | 368 | 11 | 7 | |
container_pause_test.go | H A D | 01-Jun-2021 | 1 KiB | 43 | 38 | |
container_prune.go | H A D | 01-Jun-2021 | 920 | 37 | 27 | |
container_prune_test.go | H A D | 01-Jun-2021 | 3.3 KiB | 129 | 116 | |
container_remove.go | H A D | 01-Jun-2021 | 674 | 28 | 21 | |
container_remove_test.go | H A D | 01-Jun-2021 | 2 KiB | 70 | 63 | |
container_rename.go | H A D | 01-Jun-2021 | 437 | 16 | 12 | |
container_rename_test.go | H A D | 01-Jun-2021 | 1.2 KiB | 48 | 42 | |
container_resize.go | H A D | 01-Jun-2021 | 999 | 30 | 21 | |
container_resize_test.go | H A D | 01-Jun-2021 | 2.2 KiB | 84 | 74 | |
container_restart.go | H A D | 01-Jun-2021 | 671 | 23 | 16 | |
container_restart_test.go | H A D | 01-Jun-2021 | 1.3 KiB | 50 | 45 | |
container_start.go | H A D | 01-Jun-2021 | 658 | 24 | 18 | |
container_start_test.go | H A D | 01-Jun-2021 | 1.7 KiB | 59 | 50 | |
container_stats.go | H A D | 01-Jun-2021 | 1.3 KiB | 43 | 30 | |
container_stats_test.go | H A D | 01-Jun-2021 | 1.7 KiB | 72 | 65 | |
container_stop.go | H A D | 01-Jun-2021 | 896 | 27 | 16 | |
container_stop_test.go | H A D | 01-Jun-2021 | 1.3 KiB | 50 | 45 | |
container_top.go | H A D | 01-Jun-2021 | 745 | 29 | 22 | |
container_top_test.go | H A D | 01-Jun-2021 | 1.9 KiB | 76 | 67 | |
container_unpause.go | H A D | 01-Jun-2021 | 354 | 11 | 7 | |
container_unpause_test.go | H A D | 01-Jun-2021 | 1 KiB | 43 | 38 | |
container_update.go | H A D | 01-Jun-2021 | 663 | 22 | 16 | |
container_update_test.go | H A D | 01-Jun-2021 | 1.4 KiB | 60 | 51 | |
container_wait.go | H A D | 01-Jun-2021 | 2.6 KiB | 84 | 52 | |
container_wait_test.go | H A D | 01-Jun-2021 | 1.8 KiB | 75 | 67 | |
disk_usage.go | H A D | 01-Jun-2021 | 598 | 27 | 19 | |
disk_usage_test.go | H A D | 01-Jun-2021 | 1.2 KiB | 57 | 49 | |
distribution_inspect.go | H A D | 01-Jun-2021 | 1.1 KiB | 39 | 29 | |
distribution_inspect_test.go | H A D | 01-Jun-2021 | 885 | 33 | 28 | |
errors.go | H A D | 01-Jun-2021 | 3.7 KiB | 139 | 97 | |
events.go | H A D | 01-Jun-2021 | 2.3 KiB | 103 | 81 | |
events_test.go | H A D | 01-Jun-2021 | 3.7 KiB | 166 | 149 | |
hijack.go | H A D | 01-Jun-2021 | 4.4 KiB | 146 | 101 | |
hijack_test.go | H A D | 01-Jun-2021 | 2.4 KiB | 104 | 85 | |
image_build.go | H A D | 01-Jun-2021 | 3.8 KiB | 147 | 124 | |
image_build_test.go | H A D | 01-Jun-2021 | 6.3 KiB | 234 | 222 | |
image_create.go | H A D | 01-Jun-2021 | 1.1 KiB | 38 | 30 | |
image_create_test.go | H A D | 01-Jun-2021 | 2.4 KiB | 77 | 68 | |
image_history.go | H A D | 01-Jun-2021 | 616 | 23 | 17 | |
image_history_test.go | H A D | 01-Jun-2021 | 1.4 KiB | 62 | 56 | |
image_import.go | H A D | 01-Jun-2021 | 1.1 KiB | 41 | 32 | |
image_import_test.go | H A D | 01-Jun-2021 | 2.6 KiB | 83 | 77 | |
image_inspect.go | H A D | 01-Jun-2021 | 930 | 33 | 26 | |
image_inspect_test.go | H A D | 01-Jun-2021 | 2.2 KiB | 86 | 76 | |
image_list.go | H A D | 01-Jun-2021 | 1.3 KiB | 47 | 38 | |
image_list_test.go | H A D | 01-Jun-2021 | 3.8 KiB | 161 | 147 | |
image_load.go | H A D | 01-Jun-2021 | 828 | 30 | 23 | |
image_load_test.go | H A D | 01-Jun-2021 | 2.6 KiB | 97 | 90 | |
image_prune.go | H A D | 01-Jun-2021 | 896 | 37 | 27 | |
image_prune_test.go | H A D | 01-Jun-2021 | 2.9 KiB | 123 | 111 | |
image_pull.go | H A D | 01-Jun-2021 | 2 KiB | 65 | 46 | |
image_pull_test.go | H A D | 01-Jun-2021 | 5.8 KiB | 200 | 189 | |
image_push.go | H A D | 01-Jun-2021 | 1.6 KiB | 55 | 43 | |
image_push_test.go | H A D | 01-Jun-2021 | 5.9 KiB | 201 | 189 | |
image_remove.go | H A D | 01-Jun-2021 | 770 | 32 | 24 | |
image_remove_test.go | H A D | 01-Jun-2021 | 2.7 KiB | 109 | 100 | |
image_save.go | H A D | 01-Jun-2021 | 509 | 22 | 16 | |
image_save_test.go | H A D | 01-Jun-2021 | 1.5 KiB | 59 | 53 | |
image_search.go | H A D | 01-Jun-2021 | 1.5 KiB | 52 | 42 | |
image_search_test.go | H A D | 01-Jun-2021 | 4.9 KiB | 166 | 155 | |
image_tag.go | H A D | 01-Jun-2021 | 1 KiB | 38 | 28 | |
image_tag_test.go | H A D | 01-Jun-2021 | 4.1 KiB | 145 | 131 | |
info.go | H A D | 01-Jun-2021 | 597 | 27 | 20 | |
info_test.go | H A D | 01-Jun-2021 | 1.8 KiB | 78 | 68 | |
interface.go | H A D | 01-Jun-2021 | 12.5 KiB | 202 | 173 | |
interface_experimental.go | H A D | 01-Jun-2021 | 618 | 19 | 13 | |
interface_stable.go | H A D | 01-Jun-2021 | 298 | 11 | 6 | |
login.go | H A D | 01-Jun-2021 | 733 | 26 | 18 | |
network_connect.go | H A D | 01-Jun-2021 | 584 | 20 | 15 | |
network_connect_test.go | H A D | 01-Jun-2021 | 3 KiB | 112 | 90 | |
network_create.go | H A D | 01-Jun-2021 | 730 | 26 | 20 | |
network_create_test.go | H A D | 01-Jun-2021 | 1.8 KiB | 74 | 64 | |
network_disconnect.go | H A D | 01-Jun-2021 | 510 | 16 | 11 | |
network_disconnect_test.go | H A D | 01-Jun-2021 | 1.6 KiB | 66 | 53 | |
network_inspect.go | H A D | 01-Jun-2021 | 1.6 KiB | 50 | 42 | |
network_inspect_test.go | H A D | 01-Jun-2021 | 3.3 KiB | 122 | 108 | |
network_list.go | H A D | 01-Jun-2021 | 931 | 33 | 26 | |
network_list_test.go | H A D | 01-Jun-2021 | 2.7 KiB | 110 | 98 | |
network_prune.go | H A D | 01-Jun-2021 | 922 | 37 | 27 | |
network_prune_test.go | H A D | 01-Jun-2021 | 2.8 KiB | 115 | 103 | |
network_remove.go | H A D | 01-Jun-2021 | 382 | 11 | 7 | |
network_remove_test.go | H A D | 01-Jun-2021 | 1.1 KiB | 49 | 41 | |
node_inspect.go | H A D | 01-Jun-2021 | 850 | 33 | 26 | |
node_inspect_test.go | H A D | 01-Jun-2021 | 2 KiB | 80 | 70 | |
node_list.go | H A D | 01-Jun-2021 | 788 | 37 | 27 | |
node_list_test.go | H A D | 01-Jun-2021 | 2.2 KiB | 96 | 87 | |
node_remove.go | H A D | 01-Jun-2021 | 490 | 21 | 15 | |
node_remove_test.go | H A D | 01-Jun-2021 | 1.7 KiB | 70 | 60 | |
node_update.go | H A D | 01-Jun-2021 | 496 | 19 | 14 | |
node_update_test.go | H A D | 01-Jun-2021 | 1.2 KiB | 50 | 42 | |
options.go | H A D | 01-Jun-2021 | 4.9 KiB | 173 | 130 | |
options_test.go | H A D | 01-Jun-2021 | 302 | 17 | 13 | |
ping.go | H A D | 01-Jun-2021 | 2.1 KiB | 67 | 52 | |
ping_test.go | H A D | 01-Jun-2021 | 3.9 KiB | 130 | 110 | |
plugin_create.go | H A D | 01-Jun-2021 | 601 | 24 | 17 | |
plugin_disable.go | H A D | 01-Jun-2021 | 465 | 20 | 15 | |
plugin_disable_test.go | H A D | 01-Jun-2021 | 1.2 KiB | 50 | 42 | |
plugin_enable.go | H A D | 01-Jun-2021 | 476 | 20 | 14 | |
plugin_enable_test.go | H A D | 01-Jun-2021 | 1.2 KiB | 50 | 42 | |
plugin_inspect.go | H A D | 01-Jun-2021 | 783 | 32 | 26 | |
plugin_inspect_test.go | H A D | 01-Jun-2021 | 1.7 KiB | 69 | 61 | |
plugin_install.go | H A D | 01-Jun-2021 | 3.3 KiB | 114 | 95 | |
plugin_list.go | H A D | 01-Jun-2021 | 879 | 34 | 26 | |
plugin_list_test.go | H A D | 01-Jun-2021 | 2.5 KiB | 109 | 98 | |
plugin_push.go | H A D | 01-Jun-2021 | 446 | 17 | 13 | |
plugin_push_test.go | H A D | 01-Jun-2021 | 1.3 KiB | 53 | 45 | |
plugin_remove.go | H A D | 01-Jun-2021 | 495 | 21 | 15 | |
plugin_remove_test.go | H A D | 01-Jun-2021 | 1.2 KiB | 50 | 42 | |
plugin_set.go | H A D | 01-Jun-2021 | 332 | 13 | 9 | |
plugin_set_test.go | H A D | 01-Jun-2021 | 1.2 KiB | 49 | 41 | |
plugin_upgrade.go | H A D | 01-Jun-2021 | 1.2 KiB | 40 | 32 | |
request.go | H A D | 01-Jun-2021 | 9 KiB | 270 | 209 | |
request_test.go | H A D | 01-Jun-2021 | 2.8 KiB | 108 | 92 | |
secret_create.go | H A D | 01-Jun-2021 | 691 | 26 | 20 | |
secret_create_test.go | H A D | 01-Jun-2021 | 1.8 KiB | 72 | 65 | |
secret_inspect.go | H A D | 01-Jun-2021 | 944 | 37 | 29 | |
secret_inspect_test.go | H A D | 01-Jun-2021 | 2.5 KiB | 94 | 83 | |
secret_list.go | H A D | 01-Jun-2021 | 896 | 39 | 30 | |
secret_list_test.go | H A D | 01-Jun-2021 | 2.7 KiB | 109 | 99 | |
secret_remove.go | H A D | 01-Jun-2021 | 411 | 14 | 10 | |
secret_remove_test.go | H A D | 01-Jun-2021 | 1.5 KiB | 62 | 53 | |
secret_update.go | H A D | 01-Jun-2021 | 598 | 22 | 17 | |
secret_update_test.go | H A D | 01-Jun-2021 | 1.7 KiB | 63 | 54 | |
service_create.go | H A D | 01-Jun-2021 | 6.5 KiB | 179 | 140 | |
service_create_test.go | H A D | 01-Jun-2021 | 6.6 KiB | 213 | 183 | |
service_inspect.go | H A D | 01-Jun-2021 | 1.1 KiB | 38 | 31 | |
service_inspect_test.go | H A D | 01-Jun-2021 | 2.2 KiB | 81 | 71 | |
service_list.go | H A D | 01-Jun-2021 | 872 | 40 | 30 | |
service_list_test.go | H A D | 01-Jun-2021 | 2.3 KiB | 96 | 87 | |
service_logs.go | H A D | 01-Jun-2021 | 1.1 KiB | 53 | 41 | |
service_logs_test.go | H A D | 01-Jun-2021 | 3.5 KiB | 139 | 128 | |
service_remove.go | H A D | 01-Jun-2021 | 361 | 11 | 7 | |
service_remove_test.go | H A D | 01-Jun-2021 | 1.5 KiB | 61 | 51 | |
service_update.go | H A D | 01-Jun-2021 | 2.3 KiB | 76 | 58 | |
service_update_test.go | H A D | 01-Jun-2021 | 1.9 KiB | 78 | 69 | |
swarm_get_unlock_key.go | H A D | 01-Jun-2021 | 584 | 22 | 16 | |
swarm_get_unlock_key_test.go | H A D | 01-Jun-2021 | 1.5 KiB | 63 | 52 | |
swarm_init.go | H A D | 01-Jun-2021 | 515 | 22 | 16 | |
swarm_init_test.go | H A D | 01-Jun-2021 | 1.3 KiB | 55 | 47 | |
swarm_inspect.go | H A D | 01-Jun-2021 | 505 | 22 | 16 | |
swarm_inspect_test.go | H A D | 01-Jun-2021 | 1.3 KiB | 58 | 51 | |
swarm_join.go | H A D | 01-Jun-2021 | 337 | 15 | 10 | |
swarm_join_test.go | H A D | 01-Jun-2021 | 1.2 KiB | 52 | 44 | |
swarm_leave.go | H A D | 01-Jun-2021 | 362 | 18 | 14 | |
swarm_leave_test.go | H A D | 01-Jun-2021 | 1.5 KiB | 68 | 59 | |
swarm_unlock.go | H A D | 01-Jun-2021 | 362 | 15 | 10 | |
swarm_unlock_test.go | H A D | 01-Jun-2021 | 1.3 KiB | 50 | 42 | |
swarm_update.go | H A D | 01-Jun-2021 | 745 | 23 | 18 | |
swarm_update_test.go | H A D | 01-Jun-2021 | 1.2 KiB | 50 | 42 | |
task_inspect.go | H A D | 01-Jun-2021 | 878 | 33 | 26 | |
task_inspect_test.go | H A D | 01-Jun-2021 | 1.7 KiB | 69 | 61 | |
task_list.go | H A D | 01-Jun-2021 | 787 | 36 | 27 | |
task_list_test.go | H A D | 01-Jun-2021 | 2.2 KiB | 96 | 87 | |
task_logs.go | H A D | 01-Jun-2021 | 1 KiB | 52 | 40 | |
transport.go | H A D | 01-Jun-2021 | 363 | 18 | 13 | |
utils.go | H A D | 01-Jun-2021 | 825 | 35 | 26 | |
version.go | H A D | 01-Jun-2021 | 523 | 22 | 16 | |
volume_create.go | H A D | 01-Jun-2021 | 600 | 22 | 17 | |
volume_create_test.go | H A D | 01-Jun-2021 | 1.9 KiB | 77 | 67 | |
volume_inspect.go | H A D | 01-Jun-2021 | 1.1 KiB | 39 | 30 | |
volume_inspect_test.go | H A D | 01-Jun-2021 | 2.1 KiB | 83 | 72 | |
volume_list.go | H A D | 01-Jun-2021 | 886 | 34 | 26 | |
volume_list_test.go | H A D | 01-Jun-2021 | 2.5 KiB | 100 | 88 | |
volume_prune.go | H A D | 01-Jun-2021 | 911 | 37 | 27 | |
volume_remove.go | H A D | 01-Jun-2021 | 569 | 22 | 17 | |
volume_remove_test.go | H A D | 01-Jun-2021 | 1.2 KiB | 49 | 41 |
README.md
1# Go client for the Docker Engine API 2 3The `docker` command uses this package to communicate with the daemon. It can also be used by your own Go applications to do anything the command-line interface does – running containers, pulling images, managing swarms, etc. 4 5For example, to list running containers (the equivalent of `docker ps`): 6 7```go 8package main 9 10import ( 11 "context" 12 "fmt" 13 14 "github.com/docker/docker/api/types" 15 "github.com/docker/docker/client" 16) 17 18func main() { 19 cli, err := client.NewClientWithOpts(client.FromEnv) 20 if err != nil { 21 panic(err) 22 } 23 24 containers, err := cli.ContainerList(context.Background(), types.ContainerListOptions{}) 25 if err != nil { 26 panic(err) 27 } 28 29 for _, container := range containers { 30 fmt.Printf("%s %s\n", container.ID[:10], container.Image) 31 } 32} 33``` 34 35[Full documentation is available on GoDoc.](https://godoc.org/github.com/docker/docker/client) 36