Pages : 1
#1 Le 01/02/2023, à 21:44
- thirsk
probleme docker dans un container unbuntu 18.04
Bonjour à tous
je me décide à écrire mon premier post car j'ai besoin d'aide sur ce sujet et je n'arrive pas à trouver de solution sur le net.
en effet, j'ai besoin d'installer docker dans mon container unbuntu sur mon nas mais celui ci ne veut pas se lancer.
en essayant plusieurs méthodes je vais vous afficher les différentes erreurs ci dessous:
root@b0469c73652c:~# sudo service docker start
mount: /sys/fs/cgroup/memory: permission denied.
/etc/init.d/docker: 96: ulimit: error setting limit (Operation not permitted)
concernant le daemon:
root@b0469c73652c:~# sudo dockerd
INFO[2023-02-01T20:37:46.560377255Z] Starting up
INFO[2023-02-01T20:37:46.562432238Z] libcontainerd: started new containerd process pid=5947
INFO[2023-02-01T20:37:46.562497490Z] parsed scheme: "unix" module=grpc
INFO[2023-02-01T20:37:46.562513931Z] scheme "unix" not registered, fallback to default scheme module=grpc
INFO[2023-02-01T20:37:46.562554818Z] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock <nil> 0 <nil>}] <nil> <nil>} module=grpc
INFO[2023-02-01T20:37:46.562576488Z] ClientConn switching balancer to "pick_first" module=grpc
WARN[0000] containerd config version `1` has been deprecated and will be removed in containerd v2.0, please switch to version `2`, see https://github.com/containerd/containerd/blob/main/docs/PLUGINS.md#version-header
INFO[2023-02-01T20:37:46.589161506Z] starting containerd revision=31aa4358a36870b21a992d3ad2bef29e1d693bec version=1.6.16
INFO[2023-02-01T20:37:46.615321366Z] loading plugin "io.containerd.content.v1.content"... type=io.containerd.content.v1
INFO[2023-02-01T20:37:46.615455728Z] loading plugin "io.containerd.snapshotter.v1.aufs"... type=io.containerd.snapshotter.v1
INFO[2023-02-01T20:37:46.615646686Z] skip loading plugin "io.containerd.snapshotter.v1.aufs"... error="aufs is not supported (modprobe aufs failed: exec: \"modprobe\": executable file not found in $PATH \"\"): skip plugin" type=io.containerd.snapshotter.v1
INFO[2023-02-01T20:37:46.615685579Z] loading plugin "io.containerd.snapshotter.v1.btrfs"... type=io.containerd.snapshotter.v1
INFO[2023-02-01T20:37:46.615923545Z] skip loading plugin "io.containerd.snapshotter.v1.btrfs"... error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs (zfs) must be a btrfs filesystem to be used with the btrfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1
INFO[2023-02-01T20:37:46.615954373Z] loading plugin "io.containerd.snapshotter.v1.devmapper"... type=io.containerd.snapshotter.v1
WARN[2023-02-01T20:37:46.615977466Z] failed to load plugin io.containerd.snapshotter.v1.devmapper error="devmapper not configured"
INFO[2023-02-01T20:37:46.615996772Z] loading plugin "io.containerd.snapshotter.v1.native"... type=io.containerd.snapshotter.v1
INFO[2023-02-01T20:37:46.616067465Z] loading plugin "io.containerd.snapshotter.v1.overlayfs"... type=io.containerd.snapshotter.v1
INFO[2023-02-01T20:37:46.616305391Z] loading plugin "io.containerd.snapshotter.v1.zfs"... type=io.containerd.snapshotter.v1
INFO[2023-02-01T20:37:46.616608199Z] skip loading plugin "io.containerd.snapshotter.v1.zfs"... error="exec: \"zfs\": executable file not found in $PATH: \"zfs fs list -Hp -o name,origin,used,available,mountpoint,compression,type,volsize,quota,referenced,written,logicalused,usedbydataset zpool1/zfs530/zfs5300001/3e826aa4adbc9acd6411b2fe6f7ac534807399f69e56a194e03abda9a2df8b30\" => : skip plugin" type=io.containerd.snapshotter.v1
INFO[2023-02-01T20:37:46.616645849Z] loading plugin "io.containerd.metadata.v1.bolt"... type=io.containerd.metadata.v1
WARN[2023-02-01T20:37:46.616685073Z] could not use snapshotter devmapper in metadata plugin error="devmapper not configured"
INFO[2023-02-01T20:37:46.616711552Z] metadata content store policy set policy=shared
INFO[2023-02-01T20:37:46.616883715Z] loading plugin "io.containerd.differ.v1.walking"... type=io.containerd.differ.v1
INFO[2023-02-01T20:37:46.616923951Z] loading plugin "io.containerd.event.v1.exchange"... type=io.containerd.event.v1
INFO[2023-02-01T20:37:46.616953907Z] loading plugin "io.containerd.gc.v1.scheduler"... type=io.containerd.gc.v1
INFO[2023-02-01T20:37:46.617011625Z] loading plugin "io.containerd.service.v1.introspection-service"... type=io.containerd.service.v1
INFO[2023-02-01T20:37:46.617044166Z] loading plugin "io.containerd.service.v1.containers-service"... type=io.containerd.service.v1
INFO[2023-02-01T20:37:46.617085684Z] loading plugin "io.containerd.service.v1.content-service"... type=io.containerd.service.v1
INFO[2023-02-01T20:37:46.617119096Z] loading plugin "io.containerd.service.v1.diff-service"... type=io.containerd.service.v1
INFO[2023-02-01T20:37:46.617155264Z] loading plugin "io.containerd.service.v1.images-service"... type=io.containerd.service.v1
INFO[2023-02-01T20:37:46.617187645Z] loading plugin "io.containerd.service.v1.leases-service"... type=io.containerd.service.v1
INFO[2023-02-01T20:37:46.617221669Z] loading plugin "io.containerd.service.v1.namespaces-service"... type=io.containerd.service.v1
INFO[2023-02-01T20:37:46.617253729Z] loading plugin "io.containerd.service.v1.snapshots-service"... type=io.containerd.service.v1
INFO[2023-02-01T20:37:46.617289817Z] loading plugin "io.containerd.runtime.v1.linux"... type=io.containerd.runtime.v1
INFO[2023-02-01T20:37:46.617470676Z] loading plugin "io.containerd.runtime.v2.task"... type=io.containerd.runtime.v2
INFO[2023-02-01T20:37:46.617596101Z] loading plugin "io.containerd.monitor.v1.cgroups"... type=io.containerd.monitor.v1
INFO[2023-02-01T20:37:46.618115214Z] loading plugin "io.containerd.service.v1.tasks-service"... type=io.containerd.service.v1
INFO[2023-02-01T20:37:46.618163835Z] loading plugin "io.containerd.grpc.v1.introspection"... type=io.containerd.grpc.v1
INFO[2023-02-01T20:37:46.618199753Z] loading plugin "io.containerd.internal.v1.restart"... type=io.containerd.internal.v1
INFO[2023-02-01T20:37:46.618278801Z] loading plugin "io.containerd.grpc.v1.containers"... type=io.containerd.grpc.v1
INFO[2023-02-01T20:37:46.618304900Z] loading plugin "io.containerd.grpc.v1.content"... type=io.containerd.grpc.v1
INFO[2023-02-01T20:37:46.618330899Z] loading plugin "io.containerd.grpc.v1.diff"... type=io.containerd.grpc.v1
INFO[2023-02-01T20:37:46.618361807Z] loading plugin "io.containerd.grpc.v1.events"... type=io.containerd.grpc.v1
INFO[2023-02-01T20:37:46.618395299Z] loading plugin "io.containerd.grpc.v1.healthcheck"... type=io.containerd.grpc.v1
INFO[2023-02-01T20:37:46.618426598Z] loading plugin "io.containerd.grpc.v1.images"... type=io.containerd.grpc.v1
INFO[2023-02-01T20:37:46.618453999Z] loading plugin "io.containerd.grpc.v1.leases"... type=io.containerd.grpc.v1
INFO[2023-02-01T20:37:46.618473596Z] loading plugin "io.containerd.grpc.v1.namespaces"... type=io.containerd.grpc.v1
INFO[2023-02-01T20:37:46.618498323Z] loading plugin "io.containerd.internal.v1.opt"... type=io.containerd.internal.v1
INFO[2023-02-01T20:37:46.618593862Z] loading plugin "io.containerd.grpc.v1.snapshots"... type=io.containerd.grpc.v1
INFO[2023-02-01T20:37:46.618629408Z] loading plugin "io.containerd.grpc.v1.tasks"... type=io.containerd.grpc.v1
INFO[2023-02-01T20:37:46.618651199Z] loading plugin "io.containerd.grpc.v1.version"... type=io.containerd.grpc.v1
INFO[2023-02-01T20:37:46.618687056Z] loading plugin "io.containerd.tracing.processor.v1.otlp"... type=io.containerd.tracing.processor.v1
INFO[2023-02-01T20:37:46.618713195Z] skip loading plugin "io.containerd.tracing.processor.v1.otlp"... error="no OpenTelemetry endpoint: skip plugin" type=io.containerd.tracing.processor.v1
INFO[2023-02-01T20:37:46.618737611Z] loading plugin "io.containerd.internal.v1.tracing"... type=io.containerd.internal.v1
ERRO[2023-02-01T20:37:46.618766846Z] failed to initialize a tracing processor "otlp" error="no OpenTelemetry endpoint: skip plugin"
INFO[2023-02-01T20:37:46.619295708Z] serving... address=/var/run/docker/containerd/containerd-debug.sock
INFO[2023-02-01T20:37:46.619595430Z] serving... address=/var/run/docker/containerd/containerd.sock.ttrpc
INFO[2023-02-01T20:37:46.619833516Z] serving... address=/var/run/docker/containerd/containerd.sock
INFO[2023-02-01T20:37:46.619877879Z] containerd successfully booted in 0.031767s
INFO[2023-02-01T20:37:46.630523871Z] parsed scheme: "unix" module=grpc
INFO[2023-02-01T20:37:46.630565709Z] scheme "unix" not registered, fallback to default scheme module=grpc
INFO[2023-02-01T20:37:46.630597769Z] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock <nil> 0 <nil>}] <nil> <nil>} module=grpc
INFO[2023-02-01T20:37:46.630617366Z] ClientConn switching balancer to "pick_first" module=grpc
INFO[2023-02-01T20:37:46.632128419Z] parsed scheme: "unix" module=grpc
INFO[2023-02-01T20:37:46.632176499Z] scheme "unix" not registered, fallback to default scheme module=grpc
INFO[2023-02-01T20:37:46.632211876Z] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock <nil> 0 <nil>}] <nil> <nil>} module=grpc
INFO[2023-02-01T20:37:46.632232224Z] ClientConn switching balancer to "pick_first" module=grpc
ERRO[2023-02-01T20:37:46.634945471Z] failed to mount overlay: operation not permitted storage-driver=overlay2
ERRO[2023-02-01T20:37:46.635097516Z] exec: "fuse-overlayfs": executable file not found in $PATH storage-driver=fuse-overlayfs
ERRO[2023-02-01T20:37:46.635323680Z] AUFS was not found in /proc/filesystems storage-driver=aufs
ERRO[2023-02-01T20:37:46.636906969Z] failed to mount overlay: operation not permitted storage-driver=overlay
WARN[2023-02-01T20:37:46.637480915Z] Unable to setup quota: operation not permitted
WARN[2023-02-01T20:37:46.881469858Z] Your kernel does not support cgroup blkio weight
WARN[2023-02-01T20:37:46.881499062Z] Your kernel does not support cgroup blkio weight_device
INFO[2023-02-01T20:37:46.881703335Z] Loading containers: start.
INFO[2023-02-01T20:37:46.883170156Z] unable to detect if iptables supports xlock: 'iptables --wait -L -n': `iptables v1.6.1: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.` error="exit status 3"
INFO[2023-02-01T20:37:46.901021618Z] stopping event stream following graceful shutdown error="<nil>" module=libcontainerd namespace=moby
INFO[2023-02-01T20:37:46.901387313Z] stopping healthcheck following graceful shutdown module=libcontainerd
INFO[2023-02-01T20:37:46.901391391Z] stopping event stream following graceful shutdown error="context canceled" module=libcontainerd namespace=plugins.moby
failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: iptables failed: iptables -t nat -N DOCKER: iptables v1.6.1: can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
(exit status 3)
ma version de docker:
root@b0469c73652c:~# docker version
Client: Docker Engine - Community
Version: 20.10.23
API version: 1.41
Go version: go1.18.10
Git commit: 7155243
Built: Thu Jan 19 17:34:12 2023
OS/Arch: linux/amd64
Context: default
Experimental: true
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
et je vois bien que docker n'est pas lancé:
root@b0469c73652c:~# sudo service docker status
* Docker is not running
si quelqu'un a déjà rencontré ce problème et possède une solution, je suis preneur !
dans l'attente de vous lire,
cordialement,
Thirsk
Hors ligne
#2 Le 02/02/2023, à 12:44
- xubu1957
Re : probleme docker dans un container unbuntu 18.04
Bonjour,
En regardant forums.docker.com/t/unable-to-start-dockerd-on-ubuntu-18-04-4-lts/116269,
tu n'es pas avec du wsl ?
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
En ligne
#3 Le 03/02/2023, à 10:35
- thirsk
Re : probleme docker dans un container unbuntu 18.04
Bonjour,
merci pour votre réponse.
Mon unbuntu tourne sur un docker, sur un nas QNAP avec QUTS Hero.
de ce que j'ai vu wsl est pour windows. mais mon problème est similaire, une histoire de droit alors que je suis déjà root de ce que j'ai compris.
Hors ligne
#4 Le 03/02/2023, à 10:45
- xubu1957
Re : probleme docker dans un container unbuntu 18.04
Bonjour,
Je vois cachem.fr/nas-qnap-quts-hero
Pour le nas, je ne sais pas répondre.
sudo service docker stop
sudo service docker start
donne des réponses ?
piqué dans github.com/docker/for-linux/issues/535
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
En ligne
Pages : 1