Docker Community Forums

Share and learn in the Docker community.

Debian image doesn't start

docker
beta

(Zerocom) #1

Command:
docker run -i -t --name debian-base debian /bin/bash

docker reports the container is running, but no command is executed.

Docker Info:
Containers: 2
Running: 1
Paused: 0
Stopped: 1
Images: 2
Server Version: 1.11.2
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 6
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge null host
Kernel Version: 4.4.12-moby
Operating System: Alpine Linux v3.4
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.951 GiB
Name: moby
ID: 62S4:XFAO:XB5N:S4JT:FIRJ:Q4OL:5JSZ:DGU3:GZU4:6VOS:ZI5I:JBZO
Docker Root Dir: /var/lib/docker
Debug mode (client): false
Debug mode (server): false
Registry: https://index.docker.io/v1/

Output:
docker : Unable to find image ‘debian:latest’ locally
At line:1 char:1

  • docker run -i -t --name debian-base debian /bin/bash
  •   + CategoryInfo          : NotSpecified: (Unable to find ...latest' locally:String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError
    
    

latest:
Pulling from library/debian
5c90d4a2d1a8:
Pulling fs layer
5c90d4a2d1a8:
Verifying Checksum
5c90d4a2d1a8:
Download complete
5c90d4a2d1a8:
Pull complete
Digest: sha256:8b1fc3a7a55c42e3445155b2f8f40c55de5f8bc8012992b26b570530c4bded9e
Status: Downloaded newer image for debian:latest
panic:
runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x28 pc=0x4accc6]
goroutine 56 [running]:
github.com/Sirupsen/logrus.(*Logger).Debugf
(
0x0
,
0x15c6ea0
,
0x4e
,
0xc08245dbc0
, 0x3, 0x3)

/go/src/github.com/docker/docker/vendor/src/github.com/Sirupsen/logrus/logger.go:
74
+0x26
github.com/docker/docker/pkg/term/windows.readInputEvents
(
0x9ec
,
0x8000, 0x0, 0x0, 0x0
,
0x0
,
0x0
)

/go/src/github.com/docker/docker/pkg/term/windows/ansi_reader.go
:
115
+
0x262
github.com/docker/docker/pkg/term/windows.(*ansiReader).Read
(
0xc0822f8dc0
,
0xc082464000
,
0x8000
,
0x8000
,
0x8000
,
0x0
,
0x0
)

/go/src/github.com/docker/docker/pkg/term/windows/ansi_reader.go
:
74
+
0x47b
io.copyBuffer
(0x212ed20, 0xc082371c60, 0x21602c0, 0xc0822f8dc0, 0xc082464000, 0x8000
, 0x8000, 0x0,
0x0
, 0x0)

/usr/local/go/src/io/io.go
:
381 +0x24e
io.Copy(0x212ed20, 0xc082371c60, 0x21602c0, 0xc0822f8dc0, 0xc0822f8dc0, 0x0, 0x0)
/usr/local/go/src/io/io.go:351 +0x6b
github.com/docker/docker/api/client.(*DockerCli).holdHijackedConnection.func2
(0x212a100, 0xc0822f8dc0, 0xc082371de0, 0xc08242cfc0)

/go/src/github.com/docker/docker/api/client/hijack.go
:
30
+
0xdd
created by
github.com/docker/docker/api/client.(*DockerCli).holdHijackedConnection

/go/src/github.com/docker/docker/api/client/hijack.go
:
38
+
0x13c
goroutine
1 [select]:
github.com/docker/engine-api/client/transport/cancellable.Do
(
0x2129180
, 0xc082002ec0
,
0x212ec48
,
0xc0822dbd40, 0xc0824540e0
,
0x0, 0x0, 0x0)

/go/src/github.com/docker/docker/vendor/src/github.com/docker/engine-api/client/transport/cancellable/cancellable.go
:56 +0x4a3
github.com/docker/engine-api/client.(*Client).sendClientRequest(0xc0821a1ec0,
0x2129180
, 0xc082002ec0, 0x13b8938, 0x4,
0xc08242cc00, 0x52, 0x0
, 0x4ea0128, 0xc082363e00, …)
/go/src/github.com/docker/docker/vendor/src/github.com/docker/engine-api/client/request.go:95
+0x461
github.com/docker/engine-api/client.(*Client).sendRequest(0xc0821a1ec0, 0x2129180
, 0xc082002ec0, 0x13b8938
, 0x4, 0xc08242cc00, 0x52, 0x0, 0x0, 0x0, …)

/go/src/github.com/docker/docker/vendor/src/github.com/docker/engine-api/client/request.go
:
73
+
0x2e1
github.com/docker/engine-api/client.(*Client).post
(
0xc0821a1ec0
,
0x2129180
,
0xc082002ec0
,
0xc08242cc00
,
0x52
,
0x0
,
0x0
, 0x0, 0x0, 0x10, …)
/go/src/github.com/docker/docker/vendor/src/github.com/docker/engine-api/client/request.go:36 +0xbb
github.com/docker/engine-api/client.(*Client).ContainerStart(0xc0821a1ec0, 0x2129180, 0xc082002ec0, 0xc08236d100, 0x40, 0x0, 0x0)
/go/src/github.com/docker/docker/vendor/src/github.com/docker/engine-api/client/container_start.go:7 +0xdf
github.com/docker/docker/api/client.(*DockerCli).CmdRun(0xc0821bb480, 0xc082056020, 0x6, 0x6, 0x0, 0x0)
/go/src/github.com/docker/docker/api/client/run.go:231 +0xf14
reflect.callMethod(0xc0822afe00, 0xc082167c88)
/usr/local/go/src/reflect/value.go:628 +0x203
reflect.methodValueCall(0xc082056020, 0x6, 0x6, 0x1, 0xc0822afe00, 0x0, 0x0, 0xc0822afe00, 0x0, 0x4716cb, …)
/usr/local/go/src/reflect/asm_amd64.s:29 +0x3d
github.com/docker/docker/cli.(*Cli).Run(0xc0822af8f0, 0xc082056010, 0x7, 0x7, 0x0, 0x0)
/go/src/github.com/docker/docker/cli/cli.go:89 +0x38a
main.main()
/go/src/github.com/docker/docker/docker/docker.go:63 +0x35a
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1721 +0x1
goroutine 6 [syscall]:
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:22 +0x1f
created by os/signal.init.1
/usr/local/go/src/os/signal/signal_unix.go:28 +0x3e
goroutine 52 [chan receive]:
github.com/docker/docker/pkg/term.restoreAtInterrupt.func1(0xc08242ca80, 0x9ec, 0xc082371ce0)
/go/src/github.com/docker/docker/pkg/term/term_windows.go:301 +0x4a
created by github.com/docker/docker/pkg/term.restoreAtInterrupt
/go/src/github.com/docker/docker/pkg/term/term_windows.go:304 +0xee
goroutine 10 [syscall, locked to thread]:
syscall.Syscall6(0x7ffb3ef9d5c0, 0x5, 0x1e4, 0xc0820d7f54, 0xc0820d7f58, 0xc0820d7f60, 0xffffffff, 0x0, 0xc0820d7f78, 0x1, …)
/usr/local/go/src/runtime/syscall_windows.go:174 +0x5c
github.com/Microsoft/go-winio.getQueuedCompletionStatus(0x1e4, 0xc0820d7f54, 0xc0820d7f58, 0xc0820d7f60, 0xffffffff, 0x0, 0x0)
/go/src/github.com/docker/docker/vendor/src/github.com/Microsoft/go-winio/zsyscall.go:72 +0x99
github.com/Microsoft/go-winio.ioCompletionProcessor(0x1e4)
/go/src/github.com/docker/docker/vendor/src/github.com/Microsoft/go-winio/file.go:127 +0x7c
created by github.com/Microsoft/go-winio.initIo
/go/src/github.com/docker/docker/vendor/src/github.com/Microsoft/go-winio/file.go:55 +0xb3
goroutine 11 [chan receive]:
github.com/Microsoft/go-winio.(*win32File).asyncIo(0xc08230edc0, 0xc082363a40, 0x0, 0x0, 0x0, 0xc000000000, 0x2120050, 0xc082421bf0, 0x418e2d, 0x0, …)
/go/src/github.com/docker/docker/vendor/src/github.com/Microsoft/go-winio/file.go:165 +0x176
github.com/Microsoft/go-winio.(*win32File).Read(0xc08230edc0, 0xc0822fd000, 0x1000, 0x1000, 0xedca10, 0x0, 0x0)
/go/src/github.com/docker/docker/vendor/src/github.com/Microsoft/go-winio/file.go:188 +0x15f
github.com/Microsoft/go-winio.(*win32MessageBytePipe).Read(0xc08230d6c0, 0xc0822fd000, 0x1000, 0x1000, 0x40c855, 0x0, 0x0)
/go/src/github.com/docker/docker/vendor/src/github.com/Microsoft/go-winio/pipe.go:114 +0x94
net/http.noteEOFReader.Read(0x212ecd0, 0xc08230d6c0, 0xc0820b7bd8, 0xc0822fd000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/transport.go:1370 +0x6e
net/http.(*noteEOFReader).Read(0xc08230d6e0, 0xc0822fd000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
:126 +0xd7
bufio.(*Reader).fill(0xc0823444e0)
/usr/local/go/src/bufio/bufio.go:97 +0x1f0
bufio.(*Reader).Peek(0xc0823444e0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/bufio/bufio.go:132 +0xd3
net/http.(*persistConn).readLoop(0xc0820b7b80)
/usr/local/go/src/net/http/transport.go:876 +0xfe
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:685 +0xc7f
goroutine 12 [select]:
net/http.(*persistConn).writeLoop(0xc0820b7b80)
/usr/local/go/src/net/http/transport.go:1009 +0x413
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:686 +0xca4
goroutine 53 [select]:
github.com/docker/docker/api/client.(*DockerCli).holdHijackedConnection(0xc0821bb480, 0x1, 0x212a100, 0xc0822f8dc0, 0x21242c0, 0xc08202e010, 0x21242c0, 0xc08202e010,
0x212ec70, 0xc082371c60, …)
/go/src/github.com/docker/docker/api/client/hijack.go:40 +0x4c1
github.com/docker/docker/api/client.(*DockerCli).CmdRun.func2(0x0, 0x0)
/go/src/github.com/docker/docker/api/client/run.go:218 +0xda
github.com/docker/docker/pkg/promise.Go.func1(0xc08242cba0, 0xc08242cb40)
/go/src/github.com/docker/docker/pkg/promise/promise.go:8 +0x24
created by github.com/docker/docker/pkg/promise.Go
/go/src/github.com/docker/docker/pkg/promise/promise.go:
9
+0x64
goroutine 54 [select]:
net/http.(*persistConn).roundTrip(0xc0820b7b80, 0xc082421ef0, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/transport.go:1164 +0xb14
net/http.(*Transport).RoundTrip
(0xc08206aa20, 0xc0824540e0, 0xd8, 0x0,
0x0
)
/usr/local/go/src/net/http/transport.go:235
+0x537
net/http.send(0xc0824540e0, 0x2124530, 0xc08206aa20, 0xc082452200, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:220 +0x533
net/http.(*Client).send(0xc0822afda0, 0xc0824540e0, 0x7d, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:143 +0x161
net/http.(*Client).doFollowingRedirects(0xc0822afda0, 0xc0824540e0, 0x166b018, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:380 +0xbc7
net/http.(*Client).Do(0xc0822afda0, 0xc0824540e0, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:178 +0x18f
github.com/docker/engine-api/client/transport/cancellable.Do.func1(0x212ec48, 0xc0822dbd40, 0xc0824540e0, 0xc08242cde0)
/go/src/github.com/docker/docker/vendor/src/github.com/docker/engine-api/client/transport/cancellable/cancellable.go:49 +0x3c
created by github.com/docker/engine-api/client/transport/cancellable.Do
/go/src/github.com/docker/docker/vendor/src/github.com/docker/engine-api/client/transport/cancellable/cancellable.go:52 +0x106
goroutine 55 [chan receive]:
github.com/Microsoft/go-winio.(*win32File).asyncIo(0xc08243e0a0, 0xc08242b530, 0x0, 0x0, 0x0, 0xc000000000, 0x2120050, 0xc082441990, 0x40c855, 0x0, …)
/go/src/github.com/docker/docker/vendor/src/github.com/Microsoft/go-winio/file.go:165 +0x176
github.com/Microsoft/go-winio.(*win32File).Read(0xc08243e0a0, 0xc082456000, 0x1000, 0x1000, 0x2800000000, 0x0, 0x0)
/go/src/github.com/docker/docker/vendor/src/github.com/Microsoft/go-winio/file.go:188 +0x15f
github.com/Microsoft/go-winio.(*win32MessageBytePipe).Read(0xc082371c60, 0xc082456000
, 0x1000, 0x1000, 0x14104c0, 0x0, 0x0)
/go/src/github.com/docker/docker/vendor/src/github.com/Microsoft/go-winio/pipe.go:114 +0x94
bufio.(*Reader).fill(0xc08242c960)
/usr/local/go/src/bufio/bufio.go:97 +0x1f0
bufio.(*Reader).WriteTo(0xc08242c960, 0x21242c0, 0xc08202e010, 0x0, 0x0, 0x0)
/usr/local/go/src/bufio/bufio.go:471 +0x250
io.copyBuffer(0x21242c0, 0xc08202e010, 0x21a0000, 0xc08242c960, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/io/io.go:371 +0xd7
io.Copy(0x21242c0, 0xc08202e010, 0x21a0000, 0xc08242c960, 0x0, 0x0, 0x0)
/usr/local/go/src/io/io.go:351 +0x6b
github.com/docker/docker/api/client.(*DockerCli).holdHijackedConnection.func1(0xc08242cf01, 0x21242c0, 0xc08202e010, 0xc082421f90, 0xc082371de0, 0x21242c0,
0xc08202e010, 0xc08242cf60)
/go/src/github.com/docker/docker/api/client/hijack.go:18 +0x8e
created by github.com/docker/docker/api/client.(*DockerCli).holdHijackedConnection
/go/src/github.com/docker/docker/api/client/hijack.go:24 +0x524


(Zerocom) #2

This error message is display when using PowerShell ISE. In a standard PowerShell it works fine.