Select Page

docker build – small notes

If you develop new image it happens some builds failed. It such case you could use this small “one line” script to delete failed images: for id in $(sudo docker images|tr -s ' '|grep '^<none>'|cut -d' ' -f3); do echo $id; sudo docker rmi $id -f; done...

Dockerfile – small notes

Command “docker file” uses /bin/sh shall – on github people state it is hardcoded. But you can overcome this limitation placing this command into Dockerfile: RUN rm /bin/sh && ln -s /bin/bash /bin/sh Build has its step-scopes. For example – If...