https://github.com/winverse/docker-script-maker
Easy docker script maker for tiresome work
https://github.com/winverse/docker-script-maker
Last synced: about 2 months ago
JSON representation
Easy docker script maker for tiresome work
- Host: GitHub
- URL: https://github.com/winverse/docker-script-maker
- Owner: winverse
- License: mit
- Created: 2022-07-12T06:58:25.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-12T22:13:14.000Z (almost 3 years ago)
- Last Synced: 2025-02-05T11:49:22.190Z (4 months ago)
- Language: TypeScript
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# What is this?
this is easy docker shell script maker.
just run and enter the container name.# Install
```sh
// node -v // 16.13yarn
```# Run
```sh
yarn makeWhat is the docker container name? // Enter the a container name that you want
Done! // Created docker script in scripts folder, Copy And Paste
```# Result
Folder structure
```sh
scripts
├── build.sh
├── exec.sh
├── rm.sh
└── run.sh
```build.sh
```sh
#!/bin/shdocker build -t {docker-image-name} ./
```exec.sh
```sh
#!/bin/shdocker exec -it {container-name} /bin/sh
```rm.sh
```sh
#!/bin/shdocker stop {container-name}
docker rm {container-name}
docker rmi {docker-image-name}
```run.sh
```sh
#!/bin/shdocker run -d -it -p 5001:5001 --name {container-name} {docker-image-name}
```