Which one of the following commands will result in the volume being removed automatically once the container has exited?
A. ‘docker run –del -v /foo busybox’
B. ‘docker run –read-only -v /foo busybox’
C. ‘docker run –rm -v /foo busybox’
D. ‘docker run –remove -v /foo busybox’
Answer:C
Which one of the following commands will result in the volume being removed automatically once the container has exited?
A. ‘docker run –del -v /foo busybox’ B. ‘docker run –read-only -v /foo busybox’ C. ‘docker run –rm -v /foo busybox’ D. ‘docker run –remove -v /foo busybox’