Docker 基本命令

1
2
3
4
docker images
docker login --username=user@qq.com registry.cn-hangzhou.aliyuncs.com
docker tag 23d07257d553 registry.cn-hangzhou.aliyuncs.com/user/awvs-nessus:latest
docker push registry.cn-hangzhou.aliyuncs.com/user/awvs-nessus:latest

Docker 命令

1
/usr/syno/sbin/synoservice --restart pkgctl-Docker
1
docker commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]]
1
docker commit id name
1
docker-compose up -d
1
docker exec -it 容器:/bin/bash
1
docker logs 容器
1
docker image puxxx -af # 你tab一下
1
docker image inxxx | grep Id
1
2
3
4
5
6
RUN /usr/local/bin/docker-php-source extract && \
tar zxvf /tmp/extensions/xdebug-2.5.5.tgz -C /usr/src/php/ext && \
/usr/local/bin/docker-php-ext-configure xdebug-2.5.5 && \
/usr/local/bin/docker-php-ext-install xdebug-2.5.5 && \
apk update && \
/usr/local/bin/docker-php-ext-enable xdebug

XRSec has the right to modify and interpret this article. If you want to reprint or disseminate this article, you must ensure the integrity of this article, including all contents such as copyright notice. Without the permission of the author, the content of this article shall not be modified or increased or decreased arbitrarily, and it shall not be used for commercial purposes in any way