Docker commit error

am i doing wrong… taken a nagios jasonrivers/nagios docker image . then i started the nagios container and stoped and taken nagios container id and run the command # docker exec -it /bin/bash
i done some changes in the configuration file in the nagios added server ip and monitoring configuration then exited the container . then run d command docker commit name

but after commit when i start the image i was getting the error “”"/usr/bin/docker-current: Error response from daemon: invalid header field value “oci runtime error: container_linux.go:247: starting container process caused “exec: \”-vvv\”: executable file not found in $PATH"\n""""

can somebody help me .


I think you should be more explicit about the version of Docker you are using and the different actions you realized to help you debug the issue.
For ex, with Docker 17.03.0-ce on Arch Linux, I did:

$ docker pull jasonrivers/nagios
$ docker run -d jasonrivers/nagios
$ docker exec -it d666891d46ac bash
root@d666891d46ac:/# apt-get install -y vim
root@d666891d46ac:/opt/nagios/etc# vim nagios.cfg
root@d666891d46ac:/opt/nagios/etc# exit
$ docker stop d666891d46ac
$ docker commit d666891d46ac nagios-new
$ docker run -d nagios-new:latest

And all went right.

Docker version 1.12.6, build 96d83a5/1.12.6

running on OS CentOS Linux release 7.3.1611 (Core)

os firewall and selinux in Disable mode

Can you also provide the steps to reproduce the error?

Hi kar1 Thank you so much for correcting me i was doing it in the wrong way without stoping the container i run build command . now after follwing your step its work like charm :slight_smile: thank you so much

1 Like