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容量解决之
248 0
|
1月前
|
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
|
Linux Docker 容器
docker报 “no space left on device”(磁盘空间不足)问题解决方式
docker等命令报 “no space left on device”(磁盘空间不足)问题解决方式
2004 0
关于catkin_init_workspace找不到命令的原因
关于catkin_init_workspace找不到命令的原因
504 3
关于catkin_init_workspace找不到命令的原因
|
存储 缓存 Ubuntu
free命令使用详解
free命令使用详解
150 0
free命令使用详解
rac安装报错“ Checking swap space 0 MB available, 150 MB required. Failed”
rac安装报错“ Checking swap space 0 MB available, 150 MB required. Failed”
799 0
|
Docker 容器
no space left on device解决方法
no space left on device解决方法
|
应用服务中间件 nginx
no space left on device磁盘空间不足
no space left on device磁盘空间不足
303 0