Difference between revisions of "Docker"

From no name for this wiki
Jump to: navigation, search
(run container angy)
 
Line 1: Line 1:
  
= run container angy =
+
= run container =
 
<pre>docker run --name anguly1 -p 8080:80 -e PathBase=endpoint/sampleapp1 --rm angy</pre>
 
<pre>docker run --name anguly1 -p 8080:80 -e PathBase=endpoint/sampleapp1 --rm angy</pre>
 +
<pre>docker run --env SYSTEM_ENV=int --env SYSTEM_ENV=local -p 8080:8080 --name mybrotlicontainer --rm  mydockery</pre>
  
 
= connect a console ==
 
= connect a console ==
 
<pre>docker container exec -it anguly1 sh</pre>
 
<pre>docker container exec -it anguly1 sh</pre>
 +
<pre>docker exec -it mybrotlicontainer /bin/bash</pre>
 +
 +
== build ==
 +
<pre>docker build -t mydockery .</pre>

Latest revision as of 08:15, 7 June 2022

run container

docker run --name anguly1 -p 8080:80 -e PathBase=endpoint/sampleapp1 --rm angy
docker run --env SYSTEM_ENV=int --env SYSTEM_ENV=local -p 8080:8080 --name mybrotlicontainer --rm  mydockery

connect a console =

docker container exec -it anguly1 sh
docker exec -it mybrotlicontainer /bin/bash

build

docker build -t mydockery .