https://github.com/nishkarshraj/dockerfile-basics
Docker Containers and Images using Go and DockerFile.
https://github.com/nishkarshraj/dockerfile-basics
docker docker-container docker-image docker-machine dockerfiles go
Last synced: 10 months ago
JSON representation
Docker Containers and Images using Go and DockerFile.
- Host: GitHub
- URL: https://github.com/nishkarshraj/dockerfile-basics
- Owner: NishkarshRaj
- License: gpl-3.0
- Created: 2019-07-23T09:10:01.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T17:39:26.000Z (about 2 years ago)
- Last Synced: 2025-04-02T04:03:26.330Z (11 months ago)
- Topics: docker, docker-container, docker-image, docker-machine, dockerfiles, go
- Language: Dockerfile
- Size: 225 KB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker
Docker Containers and Images using Go and DockerFile.
## Content:
1. Dockerfiles
* [FROM and RUN command](https://github.com/NishkarshRaj/Dockerfile-Basics/tree/master/1_from_run_keyword)
* [CMD command](https://github.com/NishkarshRaj/Dockerfile-Basics/tree/master/2_CMD)
* [COPY command](https://github.com/NishkarshRaj/Dockerfile-Basics/tree/master/3_Copy)
* [ADD command](https://github.com/NishkarshRaj/Dockerfile-Basics/tree/master/4_Add)
* [WORKDIR command](https://github.com/NishkarshRaj/Dockerfile-Basics/tree/master/5_WORKDIR)
* [ENTRYPOINT command](https://github.com/NishkarshRaj/Dockerfile-Basics/tree/master/6_Entrypoint)
* [ENV command](https://github.com/NishkarshRaj/Dockerfile-Basics/tree/master/7_Env)
* [LABEL command](https://github.com/NishkarshRaj/Dockerfile-Basics/tree/master/8_Label)
* [HEALTHCHECK command](https://github.com/NishkarshRaj/Dockerfile-Basics/tree/master/9_HealthCheck)
* [STOPSIGNAL command](https://github.com/NishkarshRaj/Dockerfile-Basics/tree/master/10_StopSignal)
2. Persistent Storage
* [Volume](https://github.com/NishkarshRaj/Dockerfile-Basics/tree/master/Persistent%20Storage/Volume)
* [Mount](https://github.com/NishkarshRaj/Dockerfile-Basics/tree/master/Persistent%20Storage/Mount)
3. Networking
* [EXPOSE command](https://github.com/NishkarshRaj/Dockerfile-Basics/tree/master/Networking/1-EXPOSE)
* [Subnetting Network](https://github.com/NishkarshRaj/Dockerfile-Basics/tree/master/Networking/Network)
# Basics of Dockerfile
## Creation of Dockerfile
**Syntax:**
```
vi Dockerfile
```
## Building a Dockerfile to create Docker Image
**Syntax:**
```docker
docker build -t
```
*Generally, Dockerfiles are stored on current path of build and must be specified by wildcard character .*
## Running a Docker Image to create Docker Container
**Syntax:**
```docker
docker run -it --name --rm
```