Docker version: Docker version 18.06.3-ce, build d7080c1
I want to start a stopped container with an added configuration like adding a volume mount.
I have stopped the container (Eg: Rancher container)
Commit that container into an Image
And finally created a container with the new image that has been committed earlier
But the container won’t start properly.
Could not start MySQL
The command I have used to start a container new image:
sudo docker run -d -v /home/next/rancher-bk:/var/lib/mysql --restart=unless-stopped -p 8080:8080 rancher/backup