Open mirale386 opened 3 years ago
It seems the dockerfile is somewhat buggy. Directory "/coursier_cache" is owned by user "root", so the active user "bootcamp" can't write into it properly. A quickfix as below works for me:
FROM ucbbar/chisel-bootcamp:latest
RUN cp -r /coursier_cache /home/bootcamp/coursier_cache
ENV COURSIER_CACHE=/home/bootcamp/coursier_cache
USER bootcamp
WORKDIR /chisel-bootcamp
EXPOSE 8888
CMD jupyter notebook --no-browser --ip 0.0.0.0 --port 8888
Save the dockerfile and build it. Then you can run the new image just as the original one.
docker build -t bootcamp_fix:0.01 . docker run -it --rm -p 8888:8888 bootcamp_fix:0.01
It seems the dockerfile is somewhat buggy. Directory "/coursier_cache" is owned by user "root", so the active user "bootcamp" can't write into it properly. A quickfix as below works for me:
FROM ucbbar/chisel-bootcamp:latest RUN cp -r /coursier_cache /home/bootcamp/coursier_cache ENV COURSIER_CACHE=/home/bootcamp/coursier_cache USER bootcamp WORKDIR /chisel-bootcamp EXPOSE 8888 CMD jupyter notebook --no-browser --ip 0.0.0.0 --port 8888
Save the dockerfile and build it. Then you can run the new image just as the original one.
docker build -t bootcamp_fix:0.01 . docker run -it --rm -p 8888:8888 bootcamp_fix:0.01
It's work for me ,thanks
If you get this error from an already running docker you can do this (with a machine named cool_knuth
):
docker exec --user root -it cool_knuth chown -R bootcamp:bootcamp /coursier_cache
If you get this error from an already running docker you can do this (with a machine named
cool_knuth
):docker exec --user root -it cool_knuth chown -R bootcamp:bootcamp /coursier_cache
Your solution really work!
local install follow the Local Installation using Docker - Linux/Mac/Windows
java -version :
how to slove this problem : ammonite.util.CompilationError: Failed to resolve ivy dependencies:/coursier_cache/.structure.lock (Permission denied)?
detail: