# yyd

> docker builder cli

Latest version **0.5.1** (published 2023-11-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install yyd
pnpm add yyd
yarn add yyd
bun add yyd
```

Provides the command `yyd`.

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.5.1 |
| Published | 2023-11-17 |
| First published | 2019-02-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 8.0.0 |
| Dependencies | 8 |
| Unpacked size | 55 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | jackness |
| Maintainers | jackness |
| Keywords | yyd, docker |

## Links

- npm: https://www.npmjs.com/package/yyd
- Repository: https://github.com/jackness1208/yyd
- Homepage: https://github.com/jackness1208/yyd#readme
- Issues: https://github.com/jackness1208/yyd/issues
- npm.io page: https://npm.io/package/yyd

## Dependencies (8)

- [chalk](https://npm.io/package/chalk.md) 3.0.0
- [yyl-fs](https://npm.io/package/yyl-fs.md) 0.3.3
- [yyl-os](https://npm.io/package/yyl-os.md) 0.10.3
- [inquirer](https://npm.io/package/inquirer.md) 7.0.6
- [yyl-util](https://npm.io/package/yyl-util.md) 2.3.8
- [commander](https://npm.io/package/commander.md) 4.1.1
- [yyl-print](https://npm.io/package/yyl-print.md) 0.7.5
- [yyl-replacer](https://npm.io/package/yyl-replacer.md) 0.2.1

## Recent versions

- 0.5.1 (latest) — 2023-11-17
- 0.5.0 — 2021-06-08
- 0.4.1 — 2020-03-08
- 0.4.0 — 2020-03-08
- 0.3.1 — 2020-03-07
- 0.3.0 — 2020-03-07
- 0.2.3 — 2019-06-16
- 0.2.1 — 2019-03-21
- 0.2.0 — 2019-03-20
- 0.1.1-beta2 — 2019-03-19
- 0.1.1-beta1 — 2019-03-19
- 0.1.0 — 2019-03-18
- 0.0.1 — 2019-02-28

## README

# yyd
* 用于简化 docker 命令行操作的脚手架
* 通过配置 `yyd.config.js` 快速运行 docker images, 自动查询并终止正在运行的同源镜像，可自定义后置脚本操作, 简化命令行.
* 一键清除 docker 匿名镜像 和 小于当前版本的 同源镜像
* 简化 `docker build` 操作
* 经过封装后 docker 可以push 到多个 服务器

## api

### yyd init 初始化

```
# 初始化 docker 项目，并以文件夹名称作为 tag
yyd init

# 初始化 docker 项目，并 设置 repository = yyl, tag = 0.1.0
yyd init --repository yyl --tag 0.1.0
```

### yyd build 构建

```
# 开始根据 当前目录中的 yyd.config.js 中的 config.repository, config.tag,
# 构建 docker
yyd build
yyd b
```

### yyd run

```
# 开始根据 当前目录中的 yyd.config.js 中的 config.repository, config.tag,
# 运行对应的 docker
yyd run
yyd r
```

### yyd stop
```
# 停止所有正在运行的 docker
yyd stop
```

### yyd push

```
# 开始根据 当前目录中的 yyd.config.js 中的 config.repository, config.tag,
# 发布镜像到 remote 并且 发布 ${config.repository}:latest 版本
yyd push

# 发布镜像到 remote 并且 发布 ${config.repository}:beta 版本
yyd push --tag beta
```

### yyd clean
```
# 清除 docker 中 ${config.repository}:${config.tag} 以外的其他 ${config.repository} 镜像
# 并且 清除 匿名镜像
yyd clean
```

### yyd man
```
# 显示 常用 的 docker 操作指引
yyd man
```

### yyd doctor
```
# 用于检查 docker 环境依赖
yyd doctor
```

---
_Source: https://npm.io/package/yyd · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
