Docker: Difference between revisions

From Bitpost wiki
No edit summary
No edit summary
Line 2: Line 2:
(Thanks Keith!)
(Thanks Keith!)


<pre>
<pre><code>
m@matryoshka:~$ cat MDMDockerfile
m@matryoshka:~$ cat MDMDockerfile
FROM node:current-alpine3.11
FROM node:current-alpine3.11
Line 19: Line 19:


CMD [ "es r" ]
CMD [ "es r" ]
</pre>
</code></pre>


=== Commands ===
=== Commands ===

Revision as of 15:40, 16 June 2021

Intro

(Thanks Keith!)

<code>
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" ]
</code>

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#