![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
docker
liurizhou
这个作者很懒,什么都没留下…
展开
-
Harbor 删除LDAP 历史登录用户
获取harbor-db的容器。原创 2023-02-27 17:42:09 · 213 阅读 · 1 评论 -
跨机器远程执行docker 命令
场景:A机器上起了docker images, 需要提供给他人进行debug,但是又不想提供A机器的账户和密码,该如何让他人远程进入到docker 容器中进行debug呢?# A机器IP为10.10.10.10,容器id为jfd3432456,只需要在其他机器上执行:docker -H 10.10.10.10:4243 exec -it jfd3432456 bash...原创 2022-03-01 15:13:44 · 1324 阅读 · 0 评论 -
精简docker image
减少RUN的次数 docker build加上--squash参数,会将新增的layer合并成一层Dockerfile$ cat DockerfileFROM ubuntu:18.04RUN apt-get update && apt-get install -y wgetRUN apt-get install -y gitRUN apt-get install -y vim不使用--squash$ DOCKER_BUILDKIT=1 docker build.原创 2021-10-14 17:19:42 · 606 阅读 · 0 评论 -
OCI runtime create failed: starting container process caused "chdir to cwd (\"/root/WS\")...
执行dockerfile过程中报错:OCI runtime create failed: container_linux.go:345: starting container process caused "chdir to cwd (\"/root/WS\") set in config.json failed: permission denied": unknownStep 10/1...原创 2019-11-26 15:33:05 · 4322 阅读 · 0 评论 -
Dockerfile中apt-get install 遇到交互式的处理方式
例如在Dockerfile中,有RUNapt-get install -y dracut,因为涉及交互式选择项(如下),docker build的时候会报错。root@c3210a8a85bf:/# apt-get install -y dracutReading package lists... DoneBuilding dependency tree..........The...原创 2019-06-21 14:03:53 · 10263 阅读 · 1 评论 -
docker 中使用mount命令报错:mount: permission denied
工作中需要在docker容器中执行该命令:chroot /tmp/rootxxx.FCn/tmp_root_fs mount -t proc proc /proc执行会报错:mount: permission denied解决方法:在dockerrun启动容器时加上--privilegeddocker run -v /home/liurizhou/temp:/hom...原创 2019-04-23 17:37:57 · 16226 阅读 · 1 评论 -
Ubuntu16.04升级docker ce错误:Depends: libseccomp2 (>= 2.3.0) but 2.2.3-3ubuntu3 is to be installed
环境:系统:Ubuntu16.04dockerold version:Docker version 1.10.3, build 20f81dd按照官方给出的步骤安装:https://docs.docker.com/install/linux/docker-ce/ubuntu/前面一直很顺利,执行到 apt-get install docker-ce=5:18.09.2~3-0~...原创 2019-03-04 17:31:56 · 11801 阅读 · 0 评论 -
基于centos7.6 docker镜像升级GCC至6.5版本
附上最终的Dockerfile:#OS: Centos#Version: centos7.6#Author: local.propFROM docker.io/centos:centos7.6.1810ENV http_proxy=xxx.xxx.xxx:8888ENV https_proxy=xxx....原创 2019-03-04 13:53:46 · 2939 阅读 · 0 评论 -
docker下载私有仓库镜像失败:Error response from daemon: Get $ip:5000/v2/: http: server gave HTTP response to HT
Ubuntu安装了dockerce,版本号为:# docker -vDocker version 18.09.3, build 774a1f4执行docker pull过程中报错:# docker pull xxx.xxx.xxx:5000/ubuntu/18.04/myimages:latestError response from daemon: Get https://...原创 2019-03-05 17:54:47 · 7161 阅读 · 0 评论 -
【笔记】script.sh: source: not found in docker 问题
tmp/durable-d67c81b9/script.sh: source: not found in docker在jenkins中使用pipeline搭建工程,将脚本中docker run命令替换成 withDockerContainer格式源命令为:docker run -it --name xxx -v xxxxx imagename /bin/bash -c source bui...原创 2019-01-28 10:40:22 · 4537 阅读 · 0 评论 -
docker常用命令
1. service docker restartdocker重启2. service docker stopdocker停止3. service docker startdocker启动4. docker run -it -v myfolder:myfolder --name mydocker_demo mydockerimage:v1.0 /bin/bash-i 允...原创 2019-01-28 10:38:37 · 203 阅读 · 0 评论 -
【笔记】ubuntu内核升级到4.19后,docker服务无法启动
ubuntu内核升级到4.19后,执行~# docker psCannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?起初以为是重启后docker服务没有起,执行~# service docker startJob for docker.servic...原创 2019-01-27 21:04:19 · 814 阅读 · 0 评论 -
klocwork报错:Error occurred during build: C/C+ defects detection stage failed. Program exited with 139
docker已经安装klocwork server,在jenkins中将编译在klocwork 环境中运行后报错4> 6 error(s) and 0 warning(s)December 26, 2018 5:17:51 AM UTC: Compilation stage completedDecember 26, 2018 5:17:51 AM UTC: Running C/C++...原创 2019-01-27 21:02:00 · 1412 阅读 · 0 评论