5 ms·
I'm finding that the distinction between Swarm, Compose, and Machine is not immediately obvious. Docker would probably benefit to "you should use this when", k
by mpdehaan2 12y ago
I'm finding that the distinction between Swarm, Compose, and Machine is not immediately obvious. Docker would probably benefit to "you should use this when", kind of logic, between the two.
Clearly, Swarm is the lightweight "cloud" thing (yay!), but if I'm deploying to Swarm, do I use Machine or Compose? Etc.
Possibly too many nouns would be made simpler by a single command line tool with subcommands, that were less skeomorphic, and instead were named after what they did.
Just my two cents, but the documentation needs to explain a bit more of the basics at a high level before going into the weeds, IMHO.
The other gotcha page is "if I'm on Amazon", when would I want to use swarm, if at all, when I had ECS, and how much remains relevant? I'm guessing not so much still applies, but perhaps I'm wrong.
Another good article would be what parts of these new tools remain relevant if I'm using, say, CoreOS (fleet), Kubernetes, or Mesos, or OpenStack with Docker. I'm not saying the others are better, it's just difficult to visualize how they interplay.
- numo16 12y ago> if I'm deploying to Swarm, do I use Machine or Compose? All three actually seem to work quite nicely together[0] [0]: https://blog.docker.com/2015/02/orchestrating-docker-with-machine-swarm-and-compose/ https://blog.docker.com/2015/02/orchestrating-docker-with-ma...
- mpdehaan2 12y agoYeah, I read that back in the day, and I'm still finding it hard to follow. I'm trying to pass on some marketing advice here mostly. Leaving it to the reader to try to assemble a video down into their brains, because they have problems with the text wall (particularly visual learners) is probably not a good thing. I work best off examples and pictures. I'd benefit hugely by having a list of the CLI commands, without the text filler, showing a few use cases end to end. I have a hard time keeping all the video in my brain all at once. Just seeing the bash history alone, with some light text commentary, would work for me better than the video -- by a lot. I know different people learn differently. Show all three tools delivering a "pet store" type stack maybe. Tell me when do I want compose and when can I skip it, as quickly as possible. I know these are things you can figure out in several hours/days by trying them all, but for those of us that don't have time, it needs to be presented at a higher level showing how they connect, rather than the marketing speak "it works great together" and then pages that contradict that by saying the integration is minimal. The current result is everyone's Docker topology is VERY different. I know it's not proscriptive, but it's a bit of a mess. I've encountered a lot of people doing lightweight cloud with Docker (basically no-cloud) with Ansible and manual instance management, for instance, and there SHOULD be better options - but I think people go that route because they are confused about the complexity of options they have. Back down to technical bits, I see the line "we're working with AWS to make Swarm usable on ECS", etc, as confusing and a bit marketey (as to the reason for the integration). Why do I need Swarm on ECS? Make the case, etc, these already appear to be container orchestrators. What does Swarm add on top of these other systems? Is Compose trying to be vApp or not? (vApp itself not widely deployed). So a matrix of what ECS can do versus Swarm, etc, would also help. Ultimately, from an outside perspective, it looks like other parties are doing more Docker management a lot better than Docker, and these are moves to catch up, but it's unclear where they fit, and whether they are needed in those contexts. Note: I wrote Ansible, if it's not clear to me, it's a problem -- and this is a common perception around a lot of folks I talk to :) Consider presenting things for different learning styles if you can, especially as the technology doesn't really fit into traditional management patterns - I'm genuinely interested, and probably not the only one having this problem. Again, genuinely interested in wanting to keep up.
- WestCoastJustin 12y agoWhat I think needs to happen, is they need to define some examples problems, then work through how you would solve them with Docker. A high level overview with diagrams, workflow diagrams, tools, commands, supporting docs. When you have AWS, Google, DigitalOcean, etc. all supporting Docker, there needs to be tons of docs, with extremely clear use cases, and implementation guides. Unfortunately, this takes time.. I think they are starting to do something like that with a few screencasts I have been. They almost need a weekly screencast or something ;) There is a super high demand for this type of content, I created a couple screencasts about containers and docker, and still receive a few requests a week for more. It works wonders, when you can actually show people how it works, show them how it will save time, show them how it will improve workflow. Screencast + transcript + code has worked really well for me. Here are some examples: Docker: https://sysadmincasts.com/episodes/31-introduction-to-docker https://sysadmincasts.com/episodes/31-introduction-to-docker Vagrant: https://sysadmincasts.com/episodes/42-crash-course-on-vagrant-revised https://sysadmincasts.com/episodes/42-crash-course-on-vagran... Ansible: https://sysadmincasts.com/episodes/43-19-minutes-with-ansible-part-1-4 https://sysadmincasts.com/episodes/43-19-minutes-with-ansibl...
- mpdehaan2 12y agoThat with posted solutions might be good. I'd prefer a non-screencast though, so it would be easier to go at your own pace, and jump back and review things easily. Maybe it's content WITH a screencast, but I'm finding the whole trend of tech-videos to be waaaay too time consuming compared to good reference material (things that are searchable and skimmable). Different people may have different levels of time to get immersed in it though. All being said, I loved the docker "simulator" CLI. This is a good thing. Aside: I don't really love the docker CLI in general, because of the whole SHA editing-existing-VM type of use cases, but there are good parts. In prod, you can skip most of that as you're building from Docker files and it gets a lot simpler, but it almost seems to try to tell you you build images interactively, and Docker files are a better way that skips those parts. It really feels better to me in a workflow where it's used as an image build system. But using the CLI in the way that generates new SHAs and uploads is weird, and (maybe this has changed) being able to accidentally upload your image to the public so easily is sketchy :) That's probably changed since I've looked at it. Another reason for more docs on workflow and showing how to put it all together into a production env. So maybe don't be proscriptive, but show people who are deploying from scratch, and maybe those that have never even used AWS, how to do that, and what the (I shudder to say the word) "best practice" workflow for using Dockerfiles and Dockerhub might be, with all of these components used in concert.
- chatmasta 12y agoMaybe they should adopt the same content marketing strategy of Digitalocean: pay $100 per article for "how to" tutorials targeting specific use cases.
- afarrell 12y agoI can't tell if you are snarking or not, but I find DigitalOcean's support for documentation to be helpful and haven't yet really noticed a quality problem.
- chatmasta 12y agoNo I'm being serious, I agree with you.
- benologist 12y agoIt's a real content marketing campaign DO has been doing for years and it's made their website slightly more popular than Hacker News according to Alexa. Lots of startups could learn from this. https://www.digitalocean.com/community/get-paid-to-write https://www.digitalocean.com/community/get-paid-to-write
- cheepin 12y agoAdd an 'e' to the end, and it makes a lot more sense! https://www.digitalocean.com/community/get-paid-to-write https://www.digitalocean.com/community/get-paid-to-write
- benologist 12y agoThanks!
- rrrhys 12y agoI find a lot of value in those articles and have followed enough of them! In a saturated market it might be how I've ended up with everything on digitalocean.
- 12y ago
- ossreality 12y agoMeh, read the docker proposal for nested builds. Read the docker proposal for Pods. They don't know what they're doing and it's sad. They won't remain relevant. They're hardly more useful than fig. You really want Kubernetes or Mesos.
- flurdy 12y agoI think the distinction is clear. How you would swap in other tools not so clear. With these updates I will have to update my own howto on how to use all 3 tools (4 with with the 'Engine') http://flurdy.com/docs/docker/docker_compose_machine_swarm_cloud.html http://flurdy.com/docs/docker/docker_compose_machine_swarm_c... I should probably write a tiny tool that wraps these tools and my common usage into a simpler shell script, maybe dockgod or something. I already got too many aliases in my dotfiles...