-
Notifications
You must be signed in to change notification settings - Fork 3k
COPY no longer honoring .. (folder above) in paths #5035
Copy link
Copy link
Closed
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.locked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.Assist humans wanting to comment on an old issue or PR with locked comments.stale-issue
Description
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Building a Dockerfile where the COPY statement that references the path "../file" no longer works
Steps to reproduce the issue:
- Create a Dockerfile with something like:
COPY ../foo ./
podman build -t blahblah .
Describe the results you received:
$ pwd
/home/thoraxe/Documents/xxx/container-allinone
$ podman build -t blahblah .
...
...
STEP 4: COPY ../Gemfile ../Gemfile.lock ./
Error: error dry-running "COPY ../Gemfile ../Gemfile.lock ./": no files found matching "/home/thoraxe/Documents/xxx/container-allinone/Gemfile": no such file or directory
Describe the results you expected:
Build successfully
Additional information you deem important (e.g. issue happens only occasionally):
Output of podman version:
Version: 1.7.0
RemoteAPI Version: 1
Go Version: go1.13.5
OS/Arch: linux/amd64
Output of podman info --debug:
debug:
compiler: gc
git commit: ""
go version: go1.13.5
podman version: 1.7.0
host:
BuildahVersion: 1.12.0
CgroupVersion: v2
Conmon:
package: conmon-2.0.9-2.fc31.x86_64
path: /usr/bin/conmon
version: 'conmon version 2.0.9, commit: 7d46f3e7711aa3578488284ae2f98b447658f086'
Distribution:
distribution: fedora
version: "31"
IDMappings:
gidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 100000
size: 65536
uidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 100000
size: 65536
MemFree: 3229913088
MemTotal: 32841293824
OCIRuntime:
name: crun
package: crun-0.10.6-1.fc31.x86_64
path: /usr/bin/crun
version: |-
crun version 0.10.6
spec: 1.0.0
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +YAJL
SwapFree: 16104812544
SwapTotal: 16471027712
arch: amd64
cpus: 8
eventlogger: journald
hostname: t490s-festive-local
kernel: 5.4.13-201.fc31.x86_64
os: linux
rootless: true
slirp4netns:
Executable: /usr/bin/slirp4netns
Package: slirp4netns-0.4.0-20.1.dev.gitbbd6f25.fc31.x86_64
Version: |-
slirp4netns version 0.4.0-beta.3+dev
commit: bbd6f25c70d5db2a1cd3bfb0416a8db99a75ed7e
uptime: 16h 57m 48.44s (Approximately 0.67 days)
registries:
search:
- docker.io
- registry.fedoraproject.org
- registry.access.redhat.com
- registry.centos.org
- quay.io
store:
ConfigFile: /home/thoraxe/.config/containers/storage.conf
ContainerStore:
number: 0
GraphDriverName: overlay
GraphOptions:
overlay.mount_program:
Executable: /usr/bin/fuse-overlayfs
Package: fuse-overlayfs-0.7.5-2.fc31.x86_64
Version: |-
fusermount3 version: 3.6.2
fuse-overlayfs: version 0.7.5
FUSE library version 3.6.2
using FUSE kernel interface version 7.29
GraphRoot: /home/thoraxe/.local/share/containers/storage
GraphStatus:
Backing Filesystem: extfs
Native Overlay Diff: "false"
Supports d_type: "true"
Using metacopy: "false"
ImageStore:
number: 10
RunRoot: /run/user/1000/containers
VolumePath: /home/thoraxe/.local/share/containers/storage/volumes
Package info (e.g. output of rpm -q podman or apt list podman):
podman-1.7.0-2.fc31.x86_64
Additional environment details (AWS, VirtualBox, physical, etc.):
N/A
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.locked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.Assist humans wanting to comment on an old issue or PR with locked comments.stale-issue