Je suis nouveau sur Docker. Je crée les éléments suivants Dockerfile et couru:Docker: Installation de librairies sur l'image centos
DE CentOS: le dernier contenant ENV docker RUN yum -y mise à jour & & miam propre tous
J'ai reçu l'erreur/sortie suivante:
root @ GGNLABVM-JUPER6: ~/docker_test # test de construction du docker.
envoi construire contexte Docker démon 2,048 kB
Etape 1/3: DE CentOS: dernières ---> a8493f5f50ff
Etape 2/3: conteneur ENV docker ---> Rodage e8e244c0c9d6 ---> 07355d554b3a Retrait récipient intermédiaire e8e244c0c9d6
Etape 3.3: RUN yum -y jour & & yum nettoyer tous ---> Fonctionnement en 68ad7f2 f86e2 Plugins chargés: rapidmirror, ovl
L'un des référentiels configurés a échoué (Inconnu), et yum n'a pas suffisamment de données en mémoire cache pour continuer. À ce stade, la seule chose que peut faire yum est échouer. Il y a quelques façons de travailler « fixer » ceci:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=<repoid> ...
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 <repoid>
or
subscription-manager repos --disable=<repoid>
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
ne peut pas trouver un baseurl valable pour repo: base/7/x86_64
Comment puis-je résoudre ce problème?
FYI: Je souhaite installer d'autres bibliothèques dépendantes de Python après pour mon application.
Docker Info: Conteneurs: 25 Course à pied: 3 Paused: 0 Stopped: 22: 13 Images Version serveur: 17.03.1-ce Storage Driver: aufs Racine Dir:/var/lib/docker/aufs Support de système de fichiers: extfs Dirs: 78 Dirperm1 charge: vrai Logging Driver: json-fichier cgroup Driver: cgroupfs Plugins: volume: local réseau: macvlan pont hôte superposition null Swarm: i nactive runtimes: Runc d'exécution par défaut: Runc Init binaire: docker-init version containerd: 4ab9917febca54791c5f071a9d1f404867857fcc version Runc: 54296cf40ad8143b62dbcaa1d90e520a2136ddfe Version init: 949e6fa Options de sécurité: apparmor seccomp Profil: default Version du noyau: 4.4. 0-72-generic Système d'exploitation: Ubuntu 16.04.1 LTS OSType: linux Architecture: x86_64 Processeurs: 1 Mémoire totale: 3.859 Gio Nom: GGNLABVM-JUPER6 ID: KXDG: GL4E: MPNN: 4LYS: UO6Z: RFEK: BI2H: MJSP: BIMJ: NASA: XAFR: CRN7 Docker Racine Dir:/var/lib/docker Debug Mode (client): false Debug mode (serveur): false Registre: https://index.docker.io/v1/ AVERTISSEMENT: Pas de support limite d'échange expérimental: false insécurisés Registries: 127.0.0.0/8 en direct Activé Restore: false
Version Dockre: Client: Version: 17.03.1-ce Version de l'API: 1.27 Go Version: go1.7.5 git commit: c6d412e Construit: Lun 27 mars 2017 17:14:09 OS/Arch: linux/amd64
serveur: Version: 17.03.1-ce version de l'API: 1,27 (version minimale 1,12) version Go: go1.7.5 git commit: c6d412e Construit: lun 27 mars 2017 17:14:09 OS/Arch: linux/amd64 expérimentale: false
Êtes-vous derrière un proxy? Pour moi, cela semble fonctionner. – lvthillo