import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
docker_engine: {
type: "app",
app: "docker_engine",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.docker_engine.$auth.url}/v1.45/containers/json`,
headers: {
"X-Registry-Auth": `${this.docker_engine.$auth.registry_authorization}`,
},
})
},
})
Docker Engine uses API keys for authentication. When you connect your Docker Engine account, Pipedream securely stores the keys so you can easily authenticate to Docker Engine APIs in both code and no-code steps.