ENTRYPOINT and CMD Explained in 7 seconds ... ENTRYPOINT [“echo”] CMD [“Hello”] in a Dockerfile docker run --entrypoint=”echo” my-image Woop! == $ Woop!
Docker for Local Development 4 Easy Steps. I’ll discuss 3. 1. Satisfy Dependencies 2. Introduce Docker for CI 3. Adopt Docker Shell Pattern 4. 12-Factor (Catch Alex’s talk on YouTube)
Docker Shell Pattern ◍ Your base container has all your system dependencies (Don’t use --ignore-platform-reqs) ◍ Work natively, but in the container ◍ You’ll still get all the perks
Tips: Mindful of Network Collisions Every new docker-compose file is, potentially, a new docker network / bridge on your host. Eventually, you’ll get a collision docker-compose down Add -v to remove volumes