随笔分类 - Docker
摘要:Docker 清理none镜像 Prune命令 - 岁月静好· - 博客园 (cnblogs.com)
阅读全文
摘要:# 查看镜像 curl -u "admin:Harbor12345" -X GET -H "Content-Type: application/json" "http://172.168.1.249/api/repositories?project_id=2&q=镜像名" curl -u "admi
阅读全文
摘要:比如要从镜像 nginx:latest生成dockerfile: docker pull pegleg/whaler docker run -t --rm -v /var/run/docker.sock:/var/run/docker.sock:ro pegleg/whaler -sV=1.36 n
阅读全文
摘要:declarative: pipeline { agent any pipeline { agent any stages { stage('Non-Parallel Stage') { steps { echo 'This stage will be executed first.' } } st
阅读全文
摘要:script: node(){ docker.image(<镜像名>).inside(<参数>){} } declarative: pipeline { agent {label : } stages { stage() { script { docker.image(<镜像名>).inside(<
阅读全文
摘要://查看环境配置文件 $ systemctl show docker | grep EnvironmentFile EnvironmentFile=-/etc/sysconfig/docker (ignore_errors=yes) //查看服务启动文件位置: $ systemctl show --
阅读全文
摘要:https://blog.csdn.net/karamos/article/details/80122486 https://www.cnblogs.com/zyxnhr/p/11802173.html https://cookcode.blog.csdn.net/article/details/8
阅读全文
摘要:需要设置代理的话先设置代理,再安装。 ubuntu docker 安装 apt-get update apt install docker.io systemctl start docker systemctl enable docker Refer to link: https://phoenix
阅读全文
摘要:cat /etc/systemd/system/docker.service.d/http-proxy.conf[Service]Environment="HTTP_PROXY=http://xx.xx.xx.xx:xxxx/" "HTTPS_PROXY=http://xx.xx.xx.xx:xxx
阅读全文
摘要:version: "3"services: test unit: build: . image: xx.xx.xx.xx:xxxx/test-daily volumes: - ./config.yaml:/home/config/config.yaml command: bash test.sh t
阅读全文
摘要:https://www.cnblogs.com/-wenli/p/13621862.html
阅读全文
摘要:https://blog.csdn.net/CSDN_duomaomao/article/details/78587103 docker commandline文档: https://docs.docker.com/engine/reference/commandline/ps/
阅读全文
摘要:https://www.cnblogs.com/-wenli/p/13621862.html
阅读全文
摘要:docker exec -it --env COLUMNS=`tput cols` --env LINES=`tput lines` your_container_name /bin/bash reference: https://blog.csdn.net/DongGeGe214/article/
阅读全文
摘要:su: must be run from a terminal https://stackoverflow.com/questions/36944634/su-command-in-docker-returns-must-be-run-from-terminal
阅读全文
摘要:创建overlay网卡 docker network create -d overlay --subnet 192.168.0.0/16 ov_net1 #指定子网 docker network create -d overlay ov_net2 #不指定子网 docker network ls #
阅读全文
摘要:https://blog.csdn.net/qq_29999343/article/details/78294604
阅读全文
摘要:sudo docker run -d -e TZ="Asia/Shanghai" -v /etc/localtime:/etc/localtime:ro --restart=always --net=host -p $PORT:$PORT -v /opt/logs:/opt/logs --name
阅读全文
摘要:http://www.mamicode.com/info-detail-1917569.html https://yq.aliyun.com/articles/272173 https://blog.csdn.net/weixin_32820767/article/details/81196250
阅读全文
摘要:docker container update --restart=always 容器名字 https://www.liangzl.com/get-article-detail-130403.html docker update -m 500m --memory-swap -1 9f docker
阅读全文