yum-config-manager --disable download.docker.com_linux_centos_docker-ce.reposudo
yum-config-manager --disable download.docker.com_linux_centos_docker-ce.reposudo
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable download.docker.com_linux_centos_docker-ce.reposudo
or
subscription-manager repos --disable=download.docker.com_linux_centos_docker-ce.reposudo