Jenkins - Free Swap Space 0

简介: Jenkins - Free Swap Space 0

Run the following command to see if your host has a swap file configured:

free|grep-iSwapSwap:            000

If you get "Swap: 0 0 0" like you see above your host has no swap configured.

Configure a swap file on your host

ddif=/dev/zeroof=swapfilebs=1Mcount=1Kmkswapswapfilesudochownroot:rootswapfilesudochmod600swapfilesudoswaponswapfile

Verify your swap is configured:

free|grep-iSwapSwap:      104857201048572

Good, we have a swap on the host.

Run your Jenkins docker by typing

dockerrun--privileged-p8080:8080--namejenkins-p50000:50000jenkins

Notice you must run the docker in privileged mode.

When you run your Jenkins docker in privileged mode the host's swap will be available inside the docker, so your Jenkins master will have a working swap.

If your host already has a working swap in place, all you will need to do is run the Jenkins docker in privileged mode.

目录
相关文章
|
Ubuntu
Ubuntu 1604报错cannot create temp file for here-document: No space left on device,拓展sda容量解决之
Ubuntu 1604报错cannot create temp file for here-document: No space left on device,拓展sda容量解决之
274 0
|
2月前
|
NoSQL Redis Docker
5-11write /var/lib/docker/tmp/GetImageBlob2366037717: no space left on device
5-11write /var/lib/docker/tmp/GetImageBlob2366037717: no space left on device
|
前端开发 网络架构 索引
NR PDCCH(二) SearchSpace
这篇开始介绍SearchSpace。CORESET 描述的是PDCCH 盲检资源的频域特性,SearchSpace 代表的是时域特性,具体的说就是有关时域周期和偏移、每周期内持续监测的时隙数和每个时隙内的监测的具体起始符号等,这些其实就是指示了CORESET的时域位置,两者结合构成确定的时频域资源用于PDCCH data (DCI)接收。
|
Linux Docker 容器
docker报 “no space left on device”(磁盘空间不足)问题解决方式
docker等命令报 “no space left on device”(磁盘空间不足)问题解决方式
2198 0
关于catkin_init_workspace找不到命令的原因
关于catkin_init_workspace找不到命令的原因
521 3
关于catkin_init_workspace找不到命令的原因
|
存储 缓存 Ubuntu
free命令使用详解
free命令使用详解
164 0
free命令使用详解
rac安装报错“ Checking swap space 0 MB available, 150 MB required. Failed”
rac安装报错“ Checking swap space 0 MB available, 150 MB required. Failed”
834 0
|
Docker 容器
no space left on device解决方法
no space left on device解决方法
|
应用服务中间件 nginx
no space left on device磁盘空间不足
no space left on device磁盘空间不足
308 0