diff --git a/.zk/notebook.db b/.zk/notebook.db index acc53f9..6cc828b 100644 Binary files a/.zk/notebook.db and b/.zk/notebook.db differ diff --git a/zk/Docker_rough_notes.md b/zk/Docker_rough_notes.md new file mode 100644 index 0000000..e39850c --- /dev/null +++ b/zk/Docker_rough_notes.md @@ -0,0 +1,28 @@ +--- +id: dmuz +title: Docker_rough_notes +tags: [] +created: Saturday, March 30, 2024 +--- + +# Docker_rough_notes + +## Creating and running a simple image (without Docker compose) + +Create the Dockerfile in the root of the project. + +Then build the image from root. + +``` +docker build -t image-name . +``` + +The image name is defined at this point, not pre-defined. + +If successful, run the image: + +``` +docker run --name your-container-name image-name +``` + +Again, the container-name is defined at the point of the `run` declaration.