202205-cp-behavior-difference-between-alpine-and-debian-docker-image/ #32
Replies: 1 comment
-
Ubuntu는 GNU coreutils를 사용하고, Alpine Linux는 Busybox coreutils를 사용합니다. Busybox는 여러 유틸리티를 다시 만든거라 보시면 되고, coreutils를 최대한 따라하려고 했지만 여러 케이스에서는 다른 동작을 합니다. 의도든, 버그든 다르게 동작할 수 있는 부분이 충분히 있고요 cp 유틸리티에 대해 destination symlink를 follow를 하는지, 아닌지에 대한 차이가 있는걸로 보입니다. 관련된 논의는 http://lists.busybox.net/pipermail/busybox/2008-September/067116.html 이 스레드를 참고하면 될 것 같습니다.
요약하면 busybox cp에서는 destination symlink를 follow 하지 않고, 의도적으로 gnu coreutils와 다르게 만들어졌습니다. (참고: 소스)
alpine linux에서 /bin을 확인해보시면 전부 busybox symlink가 걸려있는 걸 확인할 수 있습니다 |
Beta Was this translation helpful? Give feedback.
-
https://tech.inflab.com/202205-cp-behavior-difference-between-alpine-and-debian-docker-image/
Beta Was this translation helpful? Give feedback.
All reactions