## The problem
Issue e2b-dev/e2b#450 (closed, 18 comments): **Describe the bug** When building my custom template, I get a 401 unauthorized when the container is being pushed. **To Reproduce** Steps to reproduce the behavior: 1. Build the template (see command below) 2. Watch it blow up when pushing the container. **Expected behavior** The template container to be built successfully. **Terminal commands & output** ``` $ e2b auth login $ e2b template init $ e2b template build -c "/root/.jupyter/start-up.sh" Found ./e2b.Dockerfile that will be used to build the sandbox template. Requested build for the sandbox template 6ojhigpl457r6esinxey Login Succeede
## What fixed it
401 on `e2b template build` was fixed in @e2b/cli 1.0.6+. Update with `npm i -g @e2b/cli@latest`, then fix your Docker config per the troubleshooting guide at mount the host path https at container path //e2b.dev/docs/troubleshooting/templates/build-authentication-error