It looks like something with the hex installation. My guess is that some of the modules were installed but not others or that new version was installed but the old version is still in the load path and getting modules loaded.
You can try delete your archive folder at ~/.mix/archives and installing hex again.
Now I see that the issue is probably this command:
mix do local.rebar --force, local.hex --force, deps.get
You need to run the hex update and fetching dependencies as separate commands. mix do runs all commands in the same VM, which means that some modules from hex may be already loaded before the update and wont be reloaded unless you restart the VM.
Is this due to a recent change with Hex? I have several Dockerfiles that until this morning have been working using mix do local.rebar --force, local.hex --force, deps.get , but I had to go and move those to individual commands to get them to build today.
It was a coincidence that it worked before. Elixir loads the Hex module to check if Hex is installed and in this release we made changes to the Hex module. When the Hex module from a previous version is loaded at the same time as modules from a newer version Hex there may be errors, which you are experiencing now.