Docker: Difference between revisions

From Bitpost wiki
(Created page with "=== Commands === * show containers in a nice format sudo docker ps -a --format "table {{.Names}}\t{{.Status}}" sudo docker ps -a --format "table {{.Names}}\t{{.Status}}" |g...")
 
No edit summary
Line 1: Line 1:
=== Intro ===
(Thanks Keith!)
<pre>
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" ]
</pre>
=== Commands ===
=== Commands ===
* show containers in a nice format
* show containers in a nice format
  sudo docker ps -a --format "table {{.Names}}\t{{.Status}}"  
  sudo docker ps -a --format "table {{.Names}}\t{{.Status}}"  
  sudo docker ps -a --format "table {{.Names}}\t{{.Status}}" |grep #mycontainer#
  sudo docker ps -a --format "table {{.Names}}\t{{.Status}}" |grep #mycontainer#

Revision as of 15:39, 16 June 2021

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#