From d2b97c7bb21ddf536146798dbddfc628e59a21e5 Mon Sep 17 00:00:00 2001 From: JasonHomeWorkstationUbuntu Date: Thu, 26 Nov 2020 15:00:54 +1100 Subject: [PATCH] Downloaded Exercise File --- Ex_Files_Learning_Docker_Upd/Exercise Files/Dockerfile-1.txt | 3 +++ Ex_Files_Learning_Docker_Upd/Exercise Files/Dockerfile-2.txt | 4 ++++ Ex_Files_Learning_Docker_Upd/Exercise Files/Dockerfile-3.txt | 3 +++ Ex_Files_Learning_Docker_Upd/Exercise Files/FAQ.txt | 5 +++++ Ex_Files_Learning_Docker_Upd/Exercise Files/reformat.sh | 3 +++ 5 files changed, 18 insertions(+) create mode 100755 Ex_Files_Learning_Docker_Upd/Exercise Files/Dockerfile-1.txt create mode 100755 Ex_Files_Learning_Docker_Upd/Exercise Files/Dockerfile-2.txt create mode 100755 Ex_Files_Learning_Docker_Upd/Exercise Files/Dockerfile-3.txt create mode 100755 Ex_Files_Learning_Docker_Upd/Exercise Files/FAQ.txt create mode 100755 Ex_Files_Learning_Docker_Upd/Exercise Files/reformat.sh diff --git a/Ex_Files_Learning_Docker_Upd/Exercise Files/Dockerfile-1.txt b/Ex_Files_Learning_Docker_Upd/Exercise Files/Dockerfile-1.txt new file mode 100755 index 0000000..adba99a --- /dev/null +++ b/Ex_Files_Learning_Docker_Upd/Exercise Files/Dockerfile-1.txt @@ -0,0 +1,3 @@ +FROM debian:sid +RUN echo "building simple docker image" +CMD echo "Hello Container" diff --git a/Ex_Files_Learning_Docker_Upd/Exercise Files/Dockerfile-2.txt b/Ex_Files_Learning_Docker_Upd/Exercise Files/Dockerfile-2.txt new file mode 100755 index 0000000..6cd7824 --- /dev/null +++ b/Ex_Files_Learning_Docker_Upd/Exercise Files/Dockerfile-2.txt @@ -0,0 +1,4 @@ +FROM debian:sid +RUN apt-get -y update +RUN apt-get install nano +CMD ["/bin/nano", "/tmp/notes"] diff --git a/Ex_Files_Learning_Docker_Upd/Exercise Files/Dockerfile-3.txt b/Ex_Files_Learning_Docker_Upd/Exercise Files/Dockerfile-3.txt new file mode 100755 index 0000000..ee10ab8 --- /dev/null +++ b/Ex_Files_Learning_Docker_Upd/Exercise Files/Dockerfile-3.txt @@ -0,0 +1,3 @@ +FROM example/nanoer +ADD notes.txt /notes.txt +CMD ["nano", "/notes.txt"] diff --git a/Ex_Files_Learning_Docker_Upd/Exercise Files/FAQ.txt b/Ex_Files_Learning_Docker_Upd/Exercise Files/FAQ.txt new file mode 100755 index 0000000..4b1059b --- /dev/null +++ b/Ex_Files_Learning_Docker_Upd/Exercise Files/FAQ.txt @@ -0,0 +1,5 @@ +Docker: The Basics +Frequently Asked Questions + +Q: I can't use the nano editor on Windows +A: You'll need to install another plaintext editor, such as Vim, which is available at http://www.vim.org/download.php#pc. \ No newline at end of file diff --git a/Ex_Files_Learning_Docker_Upd/Exercise Files/reformat.sh b/Ex_Files_Learning_Docker_Upd/Exercise Files/reformat.sh new file mode 100755 index 0000000..33a5e06 --- /dev/null +++ b/Ex_Files_Learning_Docker_Upd/Exercise Files/reformat.sh @@ -0,0 +1,3 @@ +export FORMAT="\nID\t{{.ID}}\nIMAGE\t{{.Image}}\nCOMMAND\t{{.Command}}\nCREATED\t{{.RunningFor}}\nSTATUS\t{{.Status}}\nPORTS\t{{.Ports}}\nNAMES\t{{.Names}}\n" + +# this shell will only work on bash \ No newline at end of file