Docker Community Forums

Share and learn in the Docker community.

Docker build -t docker_sendm . - failing at yum update, please let me know how to solve this issue

docker build -t docker_sendm .

Sending build context to Docker daemon 4.608kB
Step 1/5 : FROM centos:8
—> 831691599b88
Step 2/5 : MAINTAINER user name “emailid@domain.com”
—> Using cache
—> d5e02e01c1a5
Step 3/5 : RUN yum update
—> Running in 187eef2ef7cd
CentOS-8 - AppStream 5.3 MB/s | 5.8 MB 00:01
CentOS-8 - Base 2.3 MB/s | 2.2 MB 00:00
CentOS-8 - Extras 7.7 kB/s | 7.0 kB 00:00
Dependencies resolved.

Package Arch Version Repository Size

Upgrading:
bind-export-libs x86_64 32:9.11.13-5.el8_2 BaseOS 1.1 M
gnutls x86_64 3.6.8-11.el8_2 BaseOS 915 k
libnghttp2 x86_64 1.33.0-3.el8_2.1 BaseOS 77 k
Installing dependencies:
trousers-lib x86_64 0.3.14-4.el8 BaseOS 169 k
Installing weak dependencies:
trousers x86_64 0.3.14-4.el8 BaseOS 153 k

Transaction Summary

Install 2 Packages
Upgrade 3 Packages

Total download size: 2.4 M
Is this ok [y/N]: Operation aborted.
The command ‘/bin/sh -c yum update’ returned a non-zero code: 1

Try yum update -y instead.

1 Like

adding -y could able to pass through the point where it was aborting. that helps thanks!