https://github.com/mazgi/container-images
https://github.com/mazgi/container-images
docker-image docker-images dockerfile dockerfiles
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mazgi/container-images
- Owner: mazgi
- License: mit
- Created: 2020-04-04T23:23:25.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2026-03-18T10:48:54.000Z (3 months ago)
- Last Synced: 2026-03-19T01:45:10.502Z (3 months ago)
- Topics: docker-image, docker-images, dockerfile, dockerfiles
- Language: Dockerfile
- Homepage:
- Size: 315 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# container-images
My Dockerfile and related resources.
| Language | Build Status | Container Images |
| -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| Go | [](https://github.com/mazgi/container-images/actions/workflows/go-app.development.yaml) | [ghcr.io/mazgi/go-app.development](https://github.com/mazgi/container-images/pkgs/container/go-app.development) |
| Node.js | [](https://github.com/mazgi/container-images/actions/workflows/node-webapp.development.yaml) | [ghcr.io/mazgi/node-webapp.development](https://github.com/mazgi/container-images/pkgs/container/node-webapp.development) |
## How to Use
### Write out your IDs and information in the .env file
If you have an old `.env` file, you are able to reset it by removing it.
```console
rm -f .env
```
:information_source: If you are using Linux, write out UID, GID, and GID for the `docker` group, into the `.env` file to let that as exported on Docker Compose as environment variables.
```console
test $(uname -s) = 'Linux' && {
echo -e "DOCKER_GID=$(getent group docker | cut -d : -f 3)"
echo -e "GID=$(id -g)"
echo -e "UID=$(id -u)"
} >> .env || :
```
## Supplementary Information
### Environment Variable Names
Environment variable names and uses are as follows.
| Name | Required on Linux | Value |
| ---------- | ----------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| UID | **Yes** | This ID number is used as UID for your Docker user, so this ID becomes the owner of all files and directories created by the container. |
| GID | **Yes** | The same as the above UID. |
| DOCKER_GID | **Yes** | This ID number is used to provide permission to read and write your docker socket on your local machine from your container. |