sudo mkdir -p /media/netdir/source/raspberrypi/4-03_docker_readynas pi@raspberry48:~ $ sudo docker run -it -v /media/netdir/source/raspberrypi/4-03_docker_readynas:/mnt/compile armel_make_phantomjs /bin/bash root@9c3bd43b31b1:/# root@9c3bd43b31b1:/# root@9c3bd43b31b1:/# ls -l total 60 drwxr-xr-x 1 root root 4096 Feb 26 13:23 bin drwxr-xr-x 2 root root 4096 May 30 2016 boot drwxr-xr-x 5 root root 340 Feb 28 13:40 dev drwxr-xr-x 1 root root 4096 Feb 28 13:40 etc drwxr-xr-x 2 root root 4096 May 30 2016 home drwxr-xr-x 1 root root 4096 Feb 26 13:25 lib drwxr-xr-x 2 root root 4096 Aug 25 2016 media drwxr-xr-x 1 root root 4096 Feb 26 12:23 mnt drwxr-xr-x 2 root root 4096 Aug 25 2016 opt dr-xr-xr-x 175 root root 0 Feb 28 13:40 proc drwx------ 1 root root 4096 Feb 26 13:30 root drwxr-xr-x 3 root root 4096 Aug 25 2016 run drwxr-xr-x 2 root root 4096 Aug 25 2016 sbin drwxr-xr-x 2 root root 4096 Aug 25 2016 srv dr-xr-xr-x 12 root root 0 Feb 28 13:23 sys drwxrwxrwt 1 root root 4096 Feb 26 13:25 tmp drwxr-xr-x 1 root root 4096 Aug 25 2016 usr drwxr-xr-x 1 root root 4096 Aug 25 2016 var root@9c3bd43b31b1:/# echo 00:00:00 00:00:00 root@9c3bd43b31b1:/# date Fri Feb 28 13:40:35 UTC 2020 root@9c3bd43b31b1:/# root@9c3bd43b31b1:/# root@9c3bd43b31b1:/# ls -l /usr/bin/g++ lrwxrwxrwx 1 root root 7 Feb 25 2015 /usr/bin/g++ -> g++-4.9 root@9c3bd43b31b1:/# cd /usr/bin/ root@9c3bd43b31b1:/usr/bin# ls -l gcc lrwxrwxrwx 1 root root 7 Feb 25 2015 gcc -> gcc-4.9 root@9c3bd43b31b1:/usr/bin# root@9c3bd43b31b1:/usr/bin# root@9c3bd43b31b1:/usr/bin# rm -f gcc root@9c3bd43b31b1:/usr/bin# rm -f g++ root@9c3bd43b31b1:/usr/bin# vim gcc bash: vim: command not found root@9c3bd43b31b1:/usr/bin# vi gcc bash: vi: command not found root@9c3bd43b31b1:/usr/bin# apt-get install -y vim Reading package lists... 0%Reading package lists... 0%Reading package lists... 1%Reading package lists... 27%Reading package lists... 53%Reading package lists... 75%Reading package lists... 88%Reading package lists... 88%Reading package lists... 88%Reading package lists... 88%Reading package lists... 98%Reading package lists... 99%Reading package lists... 99%Reading package lists... Done Building dependency tree... 0%Building dependency tree... 0%Building dependency tree... 0%Building dependency tree... 50%Building dependency tree... 50%Building dependency tree Reading state information... 0%Reading state information... 0%Reading state information... Done The following extra packages will be installed: libgpm2 vim-common vim-runtime Suggested packages: gpm ctags vim-doc vim-scripts The following NEW packages will be installed: libgpm2 vim vim-common vim-runtime 0 upgraded, 4 newly installed, 0 to remove and 38 not upgraded. Need to get 6081 kB of archives. After this operation, 28.5 MB of additional disk space will be used. 0% [Working] 0% [Connecting to httpredir.debian.org] [Connecting to security.debian.org] 0% [Connecting to httpredir.debian.org] Get:1 http://httpredir.debian.org/debian/ jessie/main libgpm2 armel 1.20.4-6.1+b2 [33.1 kB] 1% [Working] Get:2 http://security.debian.org/ jessie/updates/main vim-common armel 2:7.4.488-7+deb8u4 [185 kB] 1% [2 vim-common 0 B/185 kB 0%] 4% [Working] Get:3 http://security.debian.org/ jessie/updates/main vim-runtime all 2:7.4.488-7+deb8u4 [5052 kB] 4% [3 vim-runtime 4096 B/5052 kB 0%] 87% [Working] Get:4 http://security.debian.org/ jessie/updates/main vim armel 2:7.4.488-7+deb8u4 [811 kB] 87% [4 vim 0 B/811 kB 0%] 100% [Working] Fetched 6081 kB in 7s (766 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libgpm2:armel. (Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database ... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%(Reading database ... 100%(Reading database ... 21923 files and directories currently installed.) Preparing to unpack .../libgpm2_1.20.4-6.1+b2_armel.deb ... Unpacking libgpm2:armel (1.20.4-6.1+b2) ... Selecting previously unselected package vim-common. Preparing to unpack .../vim-common_2%3a7.4.488-7+deb8u4_armel.deb ... Unpacking vim-common (2:7.4.488-7+deb8u4) ... Selecting previously unselected package vim-runtime. Preparing to unpack .../vim-runtime_2%3a7.4.488-7+deb8u4_all.deb ... Adding 'diversion of /usr/share/vim/vim74/doc/help.txt to /usr/share/vim/vim74/doc/help.txt.vim-tiny by vim-runtime' Adding 'diversion of /usr/share/vim/vim74/doc/tags to /usr/share/vim/vim74/doc/tags.vim-tiny by vim-runtime' Unpacking vim-runtime (2:7.4.488-7+deb8u4) ... Selecting previously unselected package vim. Preparing to unpack .../vim_2%3a7.4.488-7+deb8u4_armel.deb ... Unpacking vim (2:7.4.488-7+deb8u4) ... Processing triggers for mime-support (3.58) ... Setting up libgpm2:armel (1.20.4-6.1+b2) ... Setting up vim-common (2:7.4.488-7+deb8u4) ... Setting up vim-runtime (2:7.4.488-7+deb8u4) ... Processing /usr/share/vim/addons/doc Setting up vim (2:7.4.488-7+deb8u4) ... update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode update-alternatives: using /usr/bin/vim.basic to provide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 ~ ~ ~ ~ ~ ~ ~ ~ ~ 0,0-1All~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 0,0-1All"g++" [New File]-- INSERT --0,1All#!/bin/bash1,122,1 g++-4.9 $* -mcpu=cortex-a7273,1 3,0-1All:wq"g++" [New] 3L, 40C written root@9c3bd43b31b1:/usr/bin# root@9c3bd43b31b1:/usr/bin# root@9c3bd43b31b1:/usr/bin# cat gcc #!/bin/bash gcc-4.9 $* -mcpu=cortex-a7 root@9c3bd43b31b1:/usr/bin# cat g++ #!/bin/bash g++-4.9 $* -mcpu=cortex-a7 root@9c3bd43b31b1:/usr/bin# cop    root@9c3bd43b31b1:/usr/bin# root@9c3bd43b31b1:/usr/bin# compile finish bash: compile: command not found root@9c3bd43b31b1:/usr/bin# exit exit pi@raspberry48:~ $ cd pi@raspberry48:~ $