Home > other >  Docker run can't find the container? Report no to the file or directory
Docker run can't find the container? Report no to the file or directory

Time:09-19

Novice learning problems,

Reference: http://dockerpool.com/static/books/docker_practice/image/pull.html
,The virtual machine system: CentOS6
Kernel: RHEL2.6.32-358. The el6. X86_64
The version of the kernel is too low?

[root @ localhost etc] # docker run - t - I ubuntu: 14.04/bin/bash
The Error response from the daemon: always start a container 0 b1186a32c194decbcee2e8d470ff2af9dd48a5a9d4f74edc9fa0d9ee6d9b2a7: no to the file or directory

[root @ localhost etc] # docker images
The REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
Ubuntu 14.04 ca4d7b1b9a51 8 days line 187.9 MB
Ubuntu 12.04 04 c3793b1229 8 days line 136 MB

[root @ localhost etc] # docker ps -a
The CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0 b1186a32c19 ubuntu: 14.04 "/bin/bash" 7 minutes line high_tesla
A37bd98ba0b1 ubuntu: 12.04 "/bin/sh" 5 days line lonely_torvalds
F43809cdcf89 ubuntu: 14.04 "/bin/echo 'Hello send 6 days line reverent_einstein

[root @ localhost etc] # docker info
11 Containers:
Images: 8
Storage Driver: the devicemapper
The Pool Name: docker - 46-141133 - Pool
The Pool Blocksize: 65.54 kB
Backing Filesystem: extfs
The Data file:/dev/loop0
The Metadata file:/dev/loop1
The Data Space, informs: 251.2 MB
Data Space Total: 107.4 GB
Data Space Available: 4.683 GB
The Metadata Space 2:1.43 MB
The Metadata Space Total: 2.147 GB
The Metadata Space Available: 2.146 GB
Udev Sync Supported: true
Deferred Removal Enabled: false
Data loop file:/var/lib/docker devicemapper/devicemapper/Data
The Metadata loop file:/var/lib/docker devicemapper/devicemapper/Metadata
Library Version: 1.02.95 - RHEL6 (2015-09-08)
Execution Driver: LXC - 1.0.7
Logging Driver: json - the file
The Kernel Version: 2.6.32-358. The el6. X86_64
Operating System: & lt; Unknown>
CPUs: 1
The Total Memory: 988.8 MiB
Name: localhost. Localdomain
ID: G6RJ: WDPM: U7WM: O335: RUBW: ARHY: G7PB: 7 MVT: 4 iqp: MIIL: HDUZ: XD7V

[root @ localhost etc] # docker version
The Client version: 1.7.1
The Client API version: 1.19
Go version (the client) : go1.4.2
Git commit (client) : 786 b29d/1.7.1
OS/Arch (client) : Linux/amd64
Server version: 1.7.1
Server API version: 1.19
Go version (server) : go1.4.2
Git commit (server) : 786/b29d 1.7.1
OS/Arch (server) : Linux/amd64


Don't understand why the "no to the file or directory", hope ace directions ~ ~

CodePudding user response:

No tidings:

CodePudding user response:

Should be the problem of the Linux kernel version, docker website requires the kernel in 3.8 above, you can refer to this document, upgrade the kernel should have no problem with http://www.centoscn.com/image-text/install/2014/1128/4202.html

CodePudding user response:

refer to the second floor tongtao139 response:
should be the problem of the Linux kernel version, docker website requires the kernel in 3.8 above, you can refer to this document, upgrade the kernel should have no problem for http://www.centoscn.com/image-text/install/2014/1128/4202.html

Before I met the Linux kernel version problem, which leads to the docker daemon for, this problem can you look at the docker log,

CodePudding user response:

I met this kind of problem, should be mirror has a problem, you can put the image save cost to file after docker save -o test. The tar ubuntu: 14.04 and then open the test with winrar. Tar and see if it has bin folder bash

CodePudding user response:

Said no to the file or directory is the directory does not file, from the directory to search, you may the/var/lib/docker/overlay/container no task file id the catalog, I encountered a similar before, my error message:
Docker: the Error response from the daemon: lstat/var/lib/docker/overlay/80 a30633d9fcadcf7734e67a1e931ba91aaaf931ad13e26eb8b55253617ea93c: no to the file or directory.
My solution is: 1. Systemctl stop docker # stop docker service
2. The rm - rf/var/lib/docker/* # delete the directory
# 3. Systemctl start docker restart docker service
4. To import the docker mirror
5. Restart the mirror, success,

CodePudding user response:

Not find a file, inside the container without this directory, you look at whether the container in the directory
This is your specified directory at compile time, not in the container, I also met, played a genius to understand completely

CodePudding user response:

I just started to learn docker, have a lot of knowledge but also in the study of

https://promotion.aliyun.com/ntms/act/ambassador/sharetouser.html? UserCode=5 uqvqirt & amp; ProductCode=vm& Utm_source=5 uqvqirtnullnull
  • Related