How to commit an New Image from exixting container by making some modification in container

Hi,

I am getting an issue “invalid reference format” while committing container to an image.
NOTE: Container is old existing one and I have made some changes in it (old and new container ID is same).
Now when I am commiting it it is telling invalid refernce format

Can anyone assist me for the same

Regards,
Akash