Answer the question
In order to leave comments, you need to log in
Strange error while building Docker container (Bash)?
There is a line
in the Dockerfile :
|| MYSQL_PASSWORD=`pwgen -s 20 1` && \
/bin/sh: 1: [[: not found
Answer the question
In order to leave comments, you need to log in
On most systems /bin/sh
, this is not GNU Bash ( /bin/bash
). And in Ubuntu too - there sh
- it's Debian ASH, which [[
can't.
In general, this bracket is a separate utility:
[email protected]:~:26/01/15-09:05$ ls -l /usr/bin/[
-rwxr-xr-x 1 root root 35248 Янв 27 2013 /usr/bin/[
[email protected]:~:26/01/15-09:06$ whereis [
[: /usr/bin/[ /usr/bin/X11/[ /usr/share/man/man1/[.1.gz
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question