我有一个执行shell脚本的jenkins作业。 shell脚本的最后一步是删除服务器上的docker镜像(正在使用的图像除外)。 这是我的命令:
Error response from daemon: conflict: unable to delete 69a777edb6dc (must be forced) - image is referenced in one or more repositories
Error response from daemon: conflict: unable to delete 69a777edb6dc (must be forced) - image is referenced in one or more repositories
Error response from daemon: conflict: unable to delete d9d7acd2e160 (cannot be forced) - image is being used by running container 4e5ba6ffeaf0
输出:
$('div').each(function(){
if($(this).find('img').length > 0)
{
var imgSrc = $(this).find('img').prop('src');
//$(this).css('background-color','yellow');
$(this).css('background-image','url(' + imgSrc + ')');
}
});
我如何忽略错误(因为它是正常的)+隐藏命令的输出? (尝试设置+ x但没有帮助)
答案 0 :(得分:2)
使用
{% assign productid="" %}
{% for product in collections.frontpage.products %}
{% assign product = product.id | split: ", " %}
{% endfor %}
{{product}} // should return value 3,4,4 but not returning
答案 1 :(得分:1)
应该是:
docker 2> / dev / null rmi
docker images -aq
|真
(只有一条管道)