Docker Community Forums

Share and learn in the Docker community.

Attaching Fluentd Problem


(Denizarman) #1

Hi, i have trouble with attaching fluentd container on windows operating system with Linux Containers.
When i try to attach my running container as “docker attach fluentd” terminal hangs. When i try typing “docker exec -i -t fluentd /bin/bash” i got following error, “rpc error: code = 13 desc = invalid header field value “oci runtime error: exec failed: container_linux.go:247: starting container process caused “exec: \”/bin/bash\”: stat /bin/bash: no such file or directory”\n"". But i can successfully attach to elasticsearch container so i wouldnt think this is caused because of my windows host.
Any help would be appreciated.

My Dockerfile as follows

FROM fluent/fluentd:latest
MAINTAINER DenizArman
WORKDIR /home/fluent
ENV PATH /home/fluent/.gem/ruby/2.3.0/bin:$PATH
USER root
RUN apk --no-cache --update add sudo build-base ruby-dev &&
sudo -u fluent gem install fluent-plugin-elasticsearch &&
rm -rf /home/fluent/.gem/ruby/2.3.0/cache/.gem && sudo -u fluent gem sources -c &&
apk del sudo build-base ruby-dev && rm -rf /var/cache/apk/

USER fluent
CMD exec fluentd -c /fluentd/etc/$FLUENTD_CONF -p /fluentd/plugins $FLUENTD_OPT

My docker version and info output as follows.

PS C:> docker version
Client:
Version: 1.12.3
API version: 1.24
Go version: go1.6.3
Git commit: 6b644ec
Built: Thu Oct 27 00:09:21 2016
OS/Arch: windows/amd64
Experimental: true

Server:
Version: 1.12.3
API version: 1.24
Go version: go1.6.3
Git commit: 6b644ec
Built: Thu Oct 27 00:09:21 2016
OS/Arch: linux/amd64
Experimental: true
PS C:> docker info
Containers: 4
Running: 3
Paused: 0
Stopped: 1
Images: 17
Server Version: 1.12.3
Storage Driver: overlay2
Backing Filesystem: extfs
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge null host overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 4.4.30-moby
Operating System: Alpine Linux v3.4
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.918 GiB
Name: moby
ID: DDJR:XM5K:2VGX:DJ7E:ESZ5:HZ76:T4L4:TCRU:OIMT:AGW6:KG72:TPGK
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 30
Goroutines: 55
System Time: 2016-11-23T02:54:23.2353459Z
EventsListeners: 0
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
127.0.0.0/8

Edit: CompanyName is erased.