Answer the question
In order to leave comments, you need to log in
How to update Pipfile.lock from inside docker container?
Bottom line:
You need to update Pipfile.lock from inside the docker container so as not to install a bunch of complex dependencies.
Actually, I dropped the volume, went into the container, did pipenv install pckg, Pipfile updated remarkably, and I got the following error on Pipfile.lock:
Running $ pipenv lock then $ pipenv sync.
Locking [dev-packages] dependencies...
✔ Success!
Locking [packages] dependencies...
✔ Success!
Traceback (most recent call last):
File "/usr/local/bin/pipenv", line 10, in <module>
sys.exit(cli())
File "/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/decorators.py", line 84, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/pipenv/cli/command.py", line 554, in update
write=not state.quiet,
File "/usr/local/lib/python3.7/site-packages/pipenv/core.py", line 1094, in do_lock
project.write_lockfile(lockfile)
File "/usr/local/lib/python3.7/site-packages/pipenv/project.py", line 860, in write_lockfile
f.write(u"\n")
File "/usr/local/lib/python3.7/contextlib.py", line 119, in __exit__
next(self.gen)
File "/usr/local/lib/python3.7/site-packages/pipenv/vendor/vistir/contextmanagers.py", line 301, in atomic_open_for_write
os.rename(f.name, target) # No os.replace() on Python 2.
OSError: [Errno 16] Device or resource busy: '/.__atomic-writerg0c9_49' -> '/Pipfile.lock'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question