Shivansh Saraswat:
Hi @all I am getting following error while using the docker commit command . Can someone help me out !!
Jimmy Bonilla:
If you trying to commit a container with new configuration, based on the documentation
docker commit --change='CMD ["apachectl", "-DFOREGROUND"]' -c "EXPOSE 80" c3f279d17e0a svendowideit/testimage:version4
I see --change flag they use = sign, not sure if that may be the case and why it fails for you,
Jimmy Bonilla:
https://docs.docker.com/engine/reference/commandline/commit/#commit-a-container-with-new-cmd-and-expose-instructions
Jimmy Bonilla:
docker commit --change='CMD ["httpd", "-DFOREGROUND"]' -a "Shivash Saraswat" <containerID/containerName> webtest:v1
Shivansh Saraswat: