Skip to content

Instantly share code, notes, and snippets.

@luisfaceira
Created March 25, 2016 03:40
Show Gist options
  • Save luisfaceira/079b754fa072994acdce to your computer and use it in GitHub Desktop.
Save luisfaceira/079b754fa072994acdce to your computer and use it in GitHub Desktop.
Notes while executing docker-birthday-3 tutorial

Notes on the docker-birthday-3 tutorial

1.1

  • What does uptime mean in the context of a docker container? I think that "docker run alpine uptime" is a very bad example of a command to be executed, because most people will expect it to be 0s, or otherwise will be confused that container is persisting throughout time or that will look into it as it if it were a regular VM

2.1

  • The tutorial says that I would have to run the "docker-machine env" each time I open a new terminal, but at least in windows and using the latest docker quickstart terminal, I only needed to do it once and it's being persisted or auto-detected.

3.2.1

  • It's not clearly explained what languages to list, is it our favourite ones? What effect will it have later on? Why am I choosing this?

3.2.3

  • The data-volume of the database is inside quotes but the app ones aren't. This, depending on the editor used, can be very apparent, and since it has no meaning, can be confusing for beginners. ("Why in here the data-volume is yellow, and in here it's blue?")
  • Same goes for the format that the ports are declared, across the file different yaml ways are used, but for those who do not know yaml very well, it can be very confusing.
  • The samples, though in a discreet way, demonstrate to me a current limitation of docker-compose, that it's related to its inability to handle service starting sequence/dependency in a more advanced way. The apps have loops that try to connect to the database and sleep for a while until they can connect: YUCK!
  • "Why share the code of the apps to the containers if the images built already have it?" I understand the advantage, but it's not explained and in the tutorial no additional editing of files is done after the initial build
  • Although the demonstrated app allows to dynamically register our vote, it's the previously hardcoded vote that is used for the submission, which is confusing.

Other notes

  • All mentions to docker-machine tell mention "default" in the commands to be executed, but machine no longer needs that, default is the default, and it's actually weird and unnecessary for the initial windows/mac user that only has one machine at start.
  • My submission ID: 56f4aa7168772f005529d4a0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment