So I recently moved most of my docker storage to a second hard drive, called “storage.” After a system restart, docker is creating a folder called “storage,” forcing the physical drive to be renamed “storage1.” How do I prevent this from happening?
I am using Xubuntu.
It sounds to me like one (or more) of your containers is referencing something on your storage drive, but Docker is loading before your drive gets mounted. When Docker sees that the folder its trying to access doesn’t exist, it creates it, blocking your drive from taking that name.
To fix it, you would need to make sure your storage drive is mounted before Docker starts, how you do that is down to you and your particular setup though.
That’s a good theory. This may be able to be investigated further with
systemd-analyze plot > boot.svg