>>>>> Steinar Bang <[email protected]>: > 10. Tried running the image, but that failed with "no command specified": > [node1] (local) [email protected] ~ > $ docker run -p 8101:8101 -p 8181:8181 steinarb/ukelonn-demo:202004071205 > docker: Error response from daemon: No command specified. > See 'docker run --help'. > [node1] (local) [email protected] ~ > $
I found the reason for this, I think: karaf is missing from the image No /opt and no file named something with karaf in the directory tree and no /opt/apache-karaf/bin in the PATH. sb@lorenzo:~/workspaces/ws03/ukelonn/docker$ docker run -it steinarb/ukelonn-demo:202004071205 sh / # ls -al total 68 drwxr-xr-x 1 root root 4096 Apr 11 11:20 . drwxr-xr-x 1 root root 4096 Apr 11 11:20 .. -rwxr-xr-x 1 root root 0 Apr 11 11:20 .dockerenv drwxr-xr-x 2 root root 4096 Mar 3 2017 bin drwxr-xr-x 5 root root 360 Apr 11 11:20 dev drwxr-xr-x 1 root root 4096 Apr 11 11:20 etc drwxr-xr-x 2 root root 4096 Mar 3 2017 home drwxr-xr-x 1 root root 4096 Mar 3 2017 lib lrwxrwxrwx 1 root root 12 Mar 3 2017 linuxrc -> /bin/busybox drwxr-xr-x 5 root root 4096 Mar 3 2017 media drwxr-xr-x 2 root root 4096 Mar 3 2017 mnt dr-xr-xr-x 231 root root 0 Apr 11 11:20 proc drwx------ 1 root root 4096 Apr 11 11:20 root drwxr-xr-x 2 root root 4096 Mar 3 2017 run drwxr-xr-x 2 root root 4096 Mar 3 2017 sbin drwxr-xr-x 2 root root 4096 Mar 3 2017 srv dr-xr-xr-x 13 root root 0 Apr 10 19:53 sys drwxrwxrwt 2 root root 4096 Mar 3 2017 tmp drwxr-xr-x 1 root root 4096 Mar 3 2017 usr drwxr-xr-x 1 root root 4096 Mar 3 2017 var / # find . -name \*karaf\* / # echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/jvm/java-1.8-openjdk/jre/bin:/usr/lib/jvm/java-1.8-openjdk/bin / #
