Skip to content

Instantly share code, notes, and snippets.

@marsyang1
Last active December 17, 2019 09:11
Show Gist options
  • Save marsyang1/34fa5b6318d8c2860e96 to your computer and use it in GitHub Desktop.
Save marsyang1/34fa5b6318d8c2860e96 to your computer and use it in GitHub Desktop.
docker
- does dockerfile must extends from official images? no
- May I pull all exists images to latest by one command? no
- Naming images
- before
- docker build -t IMAGE_NAME .
- after
- docker tag IMAGE_ID IMAGE_NAME:TAG_NAME(Optional)
- Naming container
- docker run --name CONTAINER_NAME
- docker vs vm
- same
- Dependency
- isolation
- different
- kernel
- docker hub
- connect with github
- Repository Links :connect with other images to CI
-
- docker container will stop by bash nothings to do , so need to close daemon.
- How to design images
- org command to same bash
- add start , stop , client to all service at usage.sh or submit to command
- dockerfile CMD call usage.sh or command
- wrap container variable -> container linking with --name , --link
-
@marsyang1
Copy link
Author

  • does dockerfile must extends from official images? no
  • May I pull all exists images to latest by one command? no
  • Naming images
    • before
      • docker build -t IMAGE_NAME .
    • after
      • docker tag IMAGE_ID IMAGE_NAME:TAG_NAME(Optional)
  • Naming container
    • docker run --name CONTAINER_NAME
  • docker vs vm
    • same
      • Dependency
      • isolation
    • different
      • kernel
  • docker hub
    • connect with github
    • Repository Links :connect with other images to CI
  • docker container will stop by bash nothings to do , so need to close daemon.
  • How to design images
    • org command to same bash
      • add start , stop , client to all service at usage.sh or submit to command
      • dockerfile CMD call usage.sh or command
      • wrap container variable -> container linking with --name , --link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment