Docker-stacks: Failed to build base-notebook, /bin/sh: 1: fix-permissions: not found

Created on 10 Aug 2018  路  4Comments  路  Source: jupyter/docker-stacks

What docker image you are using?

jupyter/base-notebook

What complete docker command do you run to launch the container (omitting sensitive values)?

docker build -t base-notebook .

What actually happens?

Step 9/27 : ADD fix-permissions /usr/local/bin/fix-permissions
---> Using cache
---> dbbd6b5f9cca

Step 10/27 : RUN groupadd wheel -g 11 && echo "auth required pam_wheel.so use_uid" >> /etc/pam.d/su && useradd -m -s /bin/bash -N -u $NB_UID $NB_USER && mkdir -p $CONDA_DIR && chown $NB_USER:$NB_GID $CONDA_DIR && chmod g+w /etc/passwd && fix-permissions $HOME && fix-permissions $CONDA_DIR
---> Running in 1b1a8dfd838c
/bin/sh: 1: fix-permissions: not found

Bug

Most helpful comment

Solved it by changing EOF from CRLF to LF.

All 4 comments

Have you cloned the entire git repo? Please check if there's a fix-permissions script in the folder where you're running docker build.

Thanks. There is such a script.

~/WORKSPACE/docker-stacks/base-notebook (master)
$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

I tried to change that line in Dockerfile to COPY fix-permissions /usr/local/bin/ but the problem still exists.

Solved it by changing EOF from CRLF to LF.

Line endings problem should be resolved by PR #704. Closing this out.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fyears picture fyears  路  5Comments

niyazpk picture niyazpk  路  4Comments

romainx picture romainx  路  4Comments

jp68138743541 picture jp68138743541  路  4Comments

tonywangcn picture tonywangcn  路  4Comments