Docker Image copying image in the datastore

Hello ,

When I try to create an image from Docker Hub in my OpenNebula node (version 6.4 ), the Docker image is downloaded onto my local machine, but the error still persists despite that I have donne all the permission to oneadmin user .


ri Feb 24 21:18:05 2023 : Error copying image in the datastore: INFO: cp: Copying local image docker://nginx?size=3072&filesystem=ext4&format=raw&tag=alpine to the image repository ERROR: cp: Command “set -e -o pipefail; /var/lib/one/remotes/datastore/fs/…/ ‘docker://nginx?size=3072&filesystem=ext4&format=raw&tag=alpine’ ‘/var/lib/one//datastores/1/aea97fbf2e94c0fcb5ec4913b1559cde’” failed: Error copying Error copying docker://nginx?size=3072&filesystem=ext4&format=raw&tag=alpine to /var/lib/one//datastores/1/aea97fbf2e94c0fcb5ec4913b1559cde

Current results:


i use ubuntu (20.04 ) OS

Manually run this command “set -e -o pipefail; /var/lib/one/remotes/datastore/fs/…/ ‘docker://nginx?size=3072&filesystem=ext4&format=raw&tag=alpine’ ‘/var/lib/one//datastores/1/aea97fbf2e94c0fcb5ec4913b1559cde’” to check exactly why it is failing to import the docker image onto the image datastore.

The error still exists, but after executing this command, the session of the ‘oneadmin’ or ‘root’ user gets disconnected.

Hello everyone i resolved this issue .

the problem is in the installation of docker in your machine .
first you should run :

apt-cache policy docker*

after that you will see : docker and not installed
for example :

after that run :

apt install docker


apt install will remove automatically docker-ce
finally you should see :


Note that in Ubuntu the package docker corresponds to a desktop application

root@ubuntu2004-fc-ssh-6-4-5rbyf-0:~# apt show docker
Package: docker
Version: 1.5-2
Priority: optional
Section: universe/x11
Origin: Ubuntu
Maintainer: Ubuntu Developers <>
Original-Maintainer: Paul Tagliamonte <>
Installed-Size: 9216 B
Depends: wmdocker
Download-Size: 1316 B
APT-Sources: http://storage/mirror/ubuntu focal/universe amd64 Packages
Description: transitional package
 This is a transitional package for system tray docking application.
 It can safely be removed.

Whereas the Virtualization technology to create containers is packaged by and docker-ce

root@ubuntu2004-fc-ssh-6-4-5rbyf-0:~# apt show
Version: 20.10.12-0ubuntu2~20.04.1
Built-Using: glibc (= 2.31-0ubuntu9.8), golang-1.16 (= 1.16.2-0ubuntu1~20.04)
Priority: optional
Section: universe/admin
Origin: Ubuntu
Maintainer: Ubuntu Developers <>
Original-Maintainer: Paul Tagliamonte <>
Installed-Size: 163 MB
Depends: adduser, containerd (>= 1.2.6-0ubuntu1~), iptables, debconf (>= 0.5) | debconf-2.0, libc6 (>= 2.8), libdevmapper1.02.1 (>= 2:1.02.97), libsystemd0 (>= 209~)
Recommends: ca-certificates, git, pigz, ubuntu-fan, xz-utils, apparmor
Suggests: aufs-tools, btrfs-progs, cgroupfs-mount | cgroup-lite, debootstrap, docker-doc, rinse, zfs-fuse | zfsutils
Breaks: docker (<< 1.5~)
Replaces: docker (<< 1.5~)
Download-Size: 31.8 MB
APT-Sources: http://storage/mirror/ubuntu focal-updates/universe amd64 Packages
Description: Linux container runtime
 Docker complements kernel namespacing with a high-level API which operates at
 the process level. It runs unix processes with strong guarantees of isolation
 and repeatability across servers.
 Docker is a great building block for automating distributed systems:
 large-scale web deployments, database clusters, continuous deployment systems,
 private PaaS, service-oriented architectures, etc.
 This package contains the daemon and client. Using on non-amd64 hosts
 is not supported at this time. Please be careful when using it on anything
 besides amd64.
 Also, note that kernel version 3.8 or above is required for proper operation of
 the daemon process, and that any lower versions may have subtle and/or glaring

N: There are 2 additional records. Please use the '-a' switch to see them.
root@ubuntu2004-fc-ssh-6-4-5rbyf-0:~# apt show docker-ce
Package: docker-ce
Version: 5:23.0.1-1~ubuntu.20.04~focal
Priority: optional
Section: admin
Maintainer: Docker <>
Installed-Size: 98.7 MB
Depends: (>= 1.6.4), docker-ce-cli, iptables, libseccomp2 (>= 2.3.0), libc6 (>= 2.8), libdevmapper1.02.1 (>= 2:1.02.97), libsystemd0
Recommends: apparmor, ca-certificates, docker-ce-rootless-extras, git, libltdl7, pigz, procps, xz-utils
Suggests: aufs-tools, cgroupfs-mount | cgroup-lite
Conflicts: docker (<< 1.5~), docker-engine, docker-engine-cs,, lxc-docker, lxc-docker-virtual-package
Replaces: docker-engine
Download-Size: 22.0 MB
APT-Manual-Installed: yes
APT-Sources: focal/stable amd64 Packages
Description: Docker: the open-source application container engine
 Docker is a product for you to build, ship and run any application as a
 lightweight container
 Docker containers are both hardware-agnostic and platform-agnostic. This means
 they can run anywhere, from your laptop to the largest cloud compute instance and
 everything in between - and they don't require you to use a particular
 language, framework or packaging system. That makes them great building blocks
 for deploying and scaling web apps, databases, and backend services without
 depending on a particular stack or provider.

N: There are 32 additional records. Please use the '-a' switch to see them.

if the problem still exist you can also resolve by try :

chmod 777(exemple permission or 666)  /var/run/docker.sock 

after that you should restart opennebula