Docker

From Bitpost wiki
Revision as of 15:39, 16 June 2021 by M (talk | contribs)

Intro

(Thanks Keith!)

m@matryoshka:~$ cat MDMDockerfile
FROM node:current-alpine3.11

RUN curl https://install.meteor.com/ | sh
&& mkdir -p development
&& cd development
&& git clone es-platform
&& cd /home/m/development/es-platform
&& meteor npm install
&& cd /home/m/development/es-config/scripts/node/es
&& npm install -g

COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]

CMD [ "es r" ]

Commands

  • show containers in a nice format
sudo docker ps -a --format "table Template:.Names\tTemplate:.Status" 
sudo docker ps -a --format "table Template:.Names\tTemplate:.Status" |grep #mycontainer#