使用 REST API 部署 Liberty Docker 容器
Using REST API to deploy Liberty Docker containers
是否有人能够使用 WebSphere Liberty REST API 部署远程 Docker 容器? docs describe all the steps, but I am not able to repeat the results. I get an error when calling REST deploy function (details are posted on the other forum).
如果有人能够做到 - 请告诉我,如果您能分享您是如何做到的,那就太好了。
发布这个问题后不久,我尝试将 curl 命令与 JSON header 规范一起使用,现在可以使用了。这是我正在使用的有效的 curl 命令:
curl --verbose --insecure -X POST --data @docker_deploy.json --header "Content-Type: application/json" -u ${ADMIN_USER}:${ADMIN_PASSWORD} https://${CONTROLLER_HOST_NAME}:${CONTROLLER_PORT}/ibm/api/collective/v1/deployment/deploy
是否有人能够使用 WebSphere Liberty REST API 部署远程 Docker 容器? docs describe all the steps, but I am not able to repeat the results. I get an error when calling REST deploy function (details are posted on the other forum).
如果有人能够做到 - 请告诉我,如果您能分享您是如何做到的,那就太好了。
发布这个问题后不久,我尝试将 curl 命令与 JSON header 规范一起使用,现在可以使用了。这是我正在使用的有效的 curl 命令:
curl --verbose --insecure -X POST --data @docker_deploy.json --header "Content-Type: application/json" -u ${ADMIN_USER}:${ADMIN_PASSWORD} https://${CONTROLLER_HOST_NAME}:${CONTROLLER_PORT}/ibm/api/collective/v1/deployment/deploy