X Tutup
Skip to content

any "pass" command in $PATH is executed when running docker-cli #699

@eipiminus1

Description

@eipiminus1

Description

Whenever I run any docker command from the terminal, the pass command is executed. In my case I had a bash script that opens keepass in a folder I added to my $PATH variable.

Steps to reproduce the issue:
I could not yet reproduce the behaviour on a debian or ubuntu server. So far I only noticed this on my machine.

  1. Put a bash script named "pass" with touch /tmp/IWASHERE in a folder in you $PATH
  2. make the file executable
  3. run docker ps or any similar command
  4. find a file IWASHERE in /tmp/

Describe the results you received:

any pass command in $PATH is executed

Describe the results you expected:

I did not expect this kind of side effect when running docker-cli

Additional information you deem important (e.g. issue happens only occasionally):

So far I could only reproduce this issue on my personal machine (archlinux) not on an ubuntu or debian server.

Output of docker version:

Client:
 Version:      17.10.0-ce
 API version:  1.33
 Go version:   go1.9.1
 Git commit:   f4ffd2511c
 Built:        Wed Oct 18 23:08:56 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.10.0-ce
 API version:  1.33 (minimum version 1.12)
 Go version:   go1.9.1
 Git commit:   f4ffd2511c
 Built:        Wed Oct 18 23:09:11 2017
 OS/Arch:      linux/amd64
 Experimental: false

Output of docker info:

Containers: 48
 Running: 5
 Paused: 0
 Stopped: 43
Images: 1061
Server Version: 17.10.0-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 06b9cb35161009dcb7123345749fef02f7cea8e0
runc version: 0351df1c5a66838d0c392b4ac4cf9450de844e2d
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.13.8-1-ARCH
Operating System: Arch Linux
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 15.12GiB
Name: ***
ID: ***
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

Additional environment details (AWS, VirtualBox, physical, etc.):

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup