Troubleshooting Error from Building Docker Images
Troubleshoot an error when building Docker images with the following steps.
Complete the following step if the following error occurs when building Docker images: rm: cannot remove '/home/tibuser/tibco/om/6.1/configurator/standalone/config/backup': Directory not empty
- Procedure
- Run the following command on the host machine:
$] docker info | grep 'Storage Driver' | awk -F':' '{print $2}' overlay $]
- If the output is overlay, then apply the following workaround:
- Stop the Docker engine.
- Changed DOCKER_OPTS to set storage-driver value to device mapper, edit
/etc/docker/daemon.json, and add
"storage-driver" : "devicemapper"
at the end of existing keys. - Start the Docker engine.
Note: You can lose the existing Docker images due to the above change.
- Verify the fix by running the following command:
$] docker info | grep 'Storage Driver' | awk -F':' '{print $2}' devicemapper $]