7,540
edits
Changes
no edit summary
docker-sendbox - amazonec2 Running tcp://54.169.84.170:2376 v18.05.0-ce
</pre>
<pre>
# docker-machine ssh docker-sendbox
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-1020-aws x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
Get cloud support with Ubuntu Advantage Cloud Guest:
http://www.ubuntu.com/business/services/cloud
184 packages can be updated.
92 updates are security updates.
ubuntu@docker-sendbox:~$
</pre>
<pre>
ubuntu@docker-sendbox1:~$ sudo docker run -dit --name apache -p 8080:80 httpd:2.4
Unable to find image 'httpd:2.4' locally
2.4: Pulling from library/httpd
1c7fe136a31e: Pull complete
72d2d593b3a7: Pull complete
96cd507e10fd: Pull complete
ec6bb3492a46: Pull complete
0ea3a980fa47: Pull complete
ebe42c0aa1a8: Pull complete
a640bae86fe0: Pull complete
Digest: sha256:963ecd717afb125c7a867d82d6935930bb93acc5078ea8bc37854d4b4de766d9
Status: Downloaded newer image for httpd:2.4
21b8f150ed88434b73a95e47a4a07c78859965c19325b08578b11aca3dcc4761
</pre>
<pre>
ubuntu@docker-sendbox:~$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2d6843f4f464 httpd:2.4 "httpd-foreground" 41 seconds ago Up 40 seconds 0.0.0.0:8080->80/tcp apache
</pre>
:[[File:ClipCapIt-180712-222716.PNG]]