Anonymous
×
Create a new article
Write your page title here:
We currently have 27 articles on PhenixOps. Type your article name above or click on one of the titles below and start writing!



PhenixOps
27Articles

Other: Difference between revisions

(Blanked the page)
Tag: Blanking
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Other stuff and work in progress that does not have it's own section yet ==
== Docker ==
------
=== Installation ===
<code>
apt-get install -y apt-transport-https ca-certificates surl software-properties-common  <br>
</code> <br>


If needed import the docker repo <br>
<code>
apt-get update 
</code> <br>
Install Docker <br>
<code>
apt-get install docker-ce
</code> <br>
=== Useful commands ===
Information  <br>
<code>
docker info
</code> <br>
Check Version of client and server <br>
<code>
docker version
</code> <br>
Search images (usually from hub.docker.com) <br>
<code>
docker search ''image''
</code> <br>
Get images you want to run  <br>
<code>
docker pull ''image''
</code> <br>
Show the images  <br>
<code>
docker image
</code> <br>
Run an image <br>
<code>
docke run ''image''
</code> <br>
Search images  <br>
<code>
docker search ''image''
</code> <br>
Run Hello World (Shows a Hello World message on the commandline) <br>
<code>
docker pull hello-world
docker run hello-world
</code> <br>
Shows a Hello World and message on the commandline <br>
Run httpd webserver <br>
<code>
docker pull httpd
docker run httpd
</code> <br>
Run http and expose it to the outside world (''-p container:host'') <br>
<code>
docker run -p 80:80 --name web01 -d httpd
</code> <br>
Show running containers <br>
<code>
docker ps
</code> <br>
Get stuff from the webserver <br>
<code>
curl localhost
</code> <br>
Stop the container <br>
<code>
docker stop web01
</code> <br>
Remove the container <br>
<code>
docker rm web01
</code> <br>
=== Comments ===

Latest revision as of 22:02, 15 May 2020