New to docker here, I have been playing around with a ubuntu based docker container, it was a good learning experience but when i tried to remove the image it using the docker rmi I keep get this error:
Error response from daemon: conflict: unable to remove repository reference "ubuntu" (must force) - container 65c315b169b8 is using its referenced image 747cb2d 60bbe
Is it fine for me to use the '--force' flag to remove the image like this?:
$ sudo docker rmi ubuntu --force
is there a better or more standard procedure to remove the image?