随笔分类 -  Docker

摘要:Docker 清理none镜像 Prune命令 - 岁月静好· - 博客园 (cnblogs.com) 阅读全文
posted @ 2022-07-24 21:27 i舒 阅读(30) 评论(0) 推荐(0) 编辑
摘要:# 查看镜像 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 阅读全文
posted @ 2022-06-02 22:36 i舒 阅读(167) 评论(0) 推荐(0) 编辑
摘要:比如要从镜像 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 阅读全文
posted @ 2022-05-18 16:38 i舒 阅读(353) 评论(0) 推荐(0) 编辑
摘要:declarative: pipeline { agent any pipeline { agent any stages { stage('Non-Parallel Stage') { steps { echo 'This stage will be executed first.' } } st 阅读全文
posted @ 2021-08-28 21:13 i舒 阅读(87) 评论(0) 推荐(0) 编辑
摘要:script: node(){ docker.image(<镜像名>).inside(<参数>){} } declarative: pipeline { agent {label : } stages { stage() { script { docker.image(<镜像名>).inside(< 阅读全文
posted @ 2021-07-14 23:17 i舒 阅读(77) 评论(0) 推荐(0) 编辑
摘要://查看环境配置文件 $ systemctl show docker | grep EnvironmentFile EnvironmentFile=-/etc/sysconfig/docker (ignore_errors=yes) //查看服务启动文件位置: $ systemctl show -- 阅读全文
posted @ 2021-07-14 22:56 i舒 阅读(4931) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/karamos/article/details/80122486 https://www.cnblogs.com/zyxnhr/p/11802173.html https://cookcode.blog.csdn.net/article/details/8 阅读全文
posted @ 2021-07-13 22:17 i舒 阅读(15) 评论(0) 推荐(0) 编辑
摘要:需要设置代理的话先设置代理,再安装。 ubuntu docker 安装 apt-get update apt install docker.io systemctl start docker systemctl enable docker Refer to link: https://phoenix 阅读全文
posted @ 2021-06-18 18:52 i舒 阅读(21) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2021-05-27 16:28 i舒 阅读(92) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2021-05-13 09:37 i舒 阅读(79) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/-wenli/p/13621862.html 阅读全文
posted @ 2021-05-10 18:09 i舒 阅读(59) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/CSDN_duomaomao/article/details/78587103 docker commandline文档: https://docs.docker.com/engine/reference/commandline/ps/ 阅读全文
posted @ 2021-05-08 18:01 i舒 阅读(58) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/-wenli/p/13621862.html 阅读全文
posted @ 2021-05-07 10:23 i舒 阅读(26) 评论(0) 推荐(0) 编辑
摘要:docker exec -it --env COLUMNS=`tput cols` --env LINES=`tput lines` your_container_name /bin/bash reference: https://blog.csdn.net/DongGeGe214/article/ 阅读全文
posted @ 2019-09-09 13:52 i舒 阅读(719) 评论(0) 推荐(0) 编辑
摘要:su: must be run from a terminal https://stackoverflow.com/questions/36944634/su-command-in-docker-returns-must-be-run-from-terminal 阅读全文
posted @ 2019-09-02 13:32 i舒 阅读(2315) 评论(0) 推荐(0) 编辑
摘要:创建overlay网卡 docker network create -d overlay --subnet 192.168.0.0/16 ov_net1 #指定子网 docker network create -d overlay ov_net2 #不指定子网 docker network ls # 阅读全文
posted @ 2019-08-31 16:30 i舒 阅读(274) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/qq_29999343/article/details/78294604 阅读全文
posted @ 2019-08-28 07:25 i舒 阅读(149) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2019-08-26 20:58 i舒 阅读(3107) 评论(0) 推荐(0) 编辑
摘要:http://www.mamicode.com/info-detail-1917569.html https://yq.aliyun.com/articles/272173 https://blog.csdn.net/weixin_32820767/article/details/81196250 阅读全文
posted @ 2019-08-23 22:47 i舒 阅读(4178) 评论(0) 推荐(0) 编辑
摘要:docker container update --restart=always 容器名字 https://www.liangzl.com/get-article-detail-130403.html docker update -m 500m --memory-swap -1 9f docker 阅读全文
posted @ 2019-08-21 22:22 i舒 阅读(595) 评论(0) 推荐(0) 编辑