Downloaded Exercise File

master
Jason Zhu 2020-11-26 15:00:54 +11:00
parent ba6e3d9d71
commit d2b97c7bb2
5 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,3 @@
FROM debian:sid
RUN echo "building simple docker image"
CMD echo "Hello Container"

View File

@ -0,0 +1,4 @@
FROM debian:sid
RUN apt-get -y update
RUN apt-get install nano
CMD ["/bin/nano", "/tmp/notes"]

View File

@ -0,0 +1,3 @@
FROM example/nanoer
ADD notes.txt /notes.txt
CMD ["nano", "/notes.txt"]

View File

@ -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.

View File

@ -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