Skip to content

Commit 8486b82

Browse files
committed
ad examples
1 parent 7b8d3fd commit 8486b82

File tree

5 files changed

+32
-0
lines changed

5 files changed

+32
-0
lines changed

example1/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Hello World
2+
3+
## Load image from registry
4+
5+
docker pull hello-world
6+
7+
## Start image
8+
9+
docker run hello-world

example2/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Nextcloud
2+
3+
[Homepage](https://nextcloud.com/)
4+
[Installation](https://docs.nextcloud.com/server/19/admin_manual/installation/)
5+
6+
docker run -d -p 8080:80 nextcloud

exampleX/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM python:latest
2+
3+
ADD main.py /
4+
5+
CMD [ "python", "./main.py" ]

exampleX/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Docker python test
2+
3+
## Build docker image
4+
5+
docker build -t python-test .
6+
7+
## Start custom image
8+
9+
docker run python-test

exampleX/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env python3
2+
3+
print("Docker is magic!")

0 commit comments

Comments
 (0)