Content-type: text/html Downes.ca ~ Stephen's Web ~ The Ultimate Beginner's Guide to Docker

Stephen Downes

Knowledge, Learning, Community

Now I already know how to set up and run a Docker container. But a lot of people don't and this post is mostly a good guide. But it's also an example of how easy it is to confuse your readers. Josep Ferrer writes, " I place the Dockerfile at the same level as my main script and the requirements.txt file." Sounds find, but above there has been no example of 'requirements.txt'. Going back you can see where he mentions it: "Even though it is not necessary, it is a good practice to always have a requirements.txt with all the libraries that our script requires. In this case, we would only add the numpy library." So - what does requirements.txt look like? Do you just put in the name of the requirements? Are they separated with spaces, commas or line feeds? Just that one little bit is unclear and requires quite a bit of inference on the part of the reader. It could stop them cold, becoming what I call a 'blocker' in instructions texts. Some other things are also unclear (and the script being run actually fails). See my video where I follow the instructions.

Today: 31 Total: 370 [Direct link] [Share]


Stephen Downes Stephen Downes, Casselman, Canada
stephen@downes.ca

Copyright 2024
Last Updated: Jun 30, 2024 08:30 a.m.

Canadian Flag Creative Commons License.

Force:yes