You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Docker model runner container does not sync changes to config.json; requires restart (engine only) #943
Info: I am using Linux, Docker Engine-only, and no credential helper; I haven't tried any other use cases (I imagine a credential helper makes this trickier).
It appears that the docker-model-runner container takes its config.json from the local system on startup. However, this file is not synced from the system while the model-runner is running, meaning any docker login actions will not be reflected into the model runner, and any docker model push that requires the new auth will fail with a standard "insufficient scope". This is confusing as it suggests that some additional configuration on the registry side is required (regular pushes succeed).
Restarting the model-runner container syncs the updated config.json and credentials can be successfully resolved, so it's not a real issue, but there's no indication in the CLI that a restart is required or that credentials are not synced; I had to dig around to figure this out.
Reproducing
# Stop runner and logout
docker model stop-runner
docker logout# Start runner and login
docker model start-runner
docker login -u [username]
# Attempt to push a model
docker model push ... # fails, even though you just logged in# Check config.json inside model runner
docker exec docker-model-runner cat /home/modelrunner/.docker/config.json # does not contain new entry# Restart model-runner and retry
docker model restart runner
docker model push ... # succeeds
docker exec docker-model-runner cat /home/modelrunner/.docker/config.json # contains new entry
Activity
fix: resolve docker config path using cli/config (docker#943)