Some of the various Docker APIs can immensely help you when you are writing up a script in the coding language of your choice. You can tie that into pulling the strings on Docker and have it to do the work for you without having to break out into another program or scripting language.
This API is used just for account management. With it, you can:
There is not a lot that you can do with this API as it is mainly focused around what you can do with one's user account. In reality, there isn't a lot of information baked into one's user account, and as you can see, the e-mail address is the main focal point of one's account.
For more information, please visit https://docs.docker.com/reference/api/docker_io_accounts_api/.
Let's just start off by saying that the Remote API is very intense, and that's not a bad thing. When it comes to APIs, you want them to be able to do just anything you want so that you never have to leave your code to perform these actions. Here is the high-level overview of what you can do with this API:
So you heard me say it was very intense, but based on what you can do with it, it doesn't look very intense until you take a peek into it yourself. Think of all the things that you can normally do with a container or an image and then you will understand why I state that it is intense. Things such as creating containers or images, listing them out, and getting information about containers or images might include getting information about the files and folders inside a container, copying files or folders from a container, and removing a container or image. There are also ways to manipulate or "hijack", as the documentation puts it such as using the docker run
command. You can retrieve the various codes from the run
command and determine what the command is doing.
For more information on the Remote API, refer to https://docs.docker.com/engine/reference/api/docker_remote_api/ and to know more about the latest Remote API, visit https://docs.docker.com/reference/api/docker_remote_api_v1.20/.