Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux_wiki:docker_image_devel [2019/07/20 18:05] billdozor [Push Images To Docker Registry] |
linux_wiki:docker_image_devel [2019/07/21 16:10] (current) billdozor [Docker: Image Development] |
||
---|---|---|---|
Line 6: | Line 6: | ||
**Checklist** | **Checklist** | ||
- | * Docker installed | + | * [[linux_wiki: |
- | * Account on docker hub or private registry setup | + | * A [[https:// |
+ | * [[https:// | ||
+ | * Account on [[https:// | ||
---- | ---- | ||
====== Building/ | ====== Building/ | ||
- | |||
- | Best practices for Dockerfiles: | ||
\\ | \\ | ||
Line 60: | Line 60: | ||
Login to registry | Login to registry | ||
- | * Docker Hub<code bash></ | + | * Docker Hub<code bash>docker login -u dockerhubuser</ |
+ | * **Note**: Login only required if docker hub registry is private (they are public by default). | ||
* Private Registry< | * Private Registry< | ||
\\ | \\ | ||
- | Run container interactively with a bash shell(latest tag is default) | + | Run container interactively with a bash shell (latest tag is default) |
- | * Docker Hub<code bash></ | + | * Docker Hub<code bash>docker run -it --name mycontainername dockerhubuser/ |
* Private Registry< | * Private Registry< | ||
---- | ---- | ||