-
-
Notifications
You must be signed in to change notification settings - Fork 756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in docker-slim build #59
Comments
Thanks a lot for opening the issue! I wonder if you have anything else printed to the console when you run the command. Looks like the sensor volume failed to mount in the container when DockerSlim was trying to analyze the image. |
I had the same issue... my solution was to copy the binary to the folder I was (which probably had the permissions to create the |
On mac os docker-slim work, but on linux build fails
I run same command
|
@marceloboeira thanks for adding a comment about your own experience! It's super helpful! Where was the binary originally when it failed to work? |
@Smolevich where is the |
I have the same issue. the docker-slim build command tries to make |
does docker-slim have the option to change the path which creating |
@Ladicle Yes, the |
@marceloboeira If the |
@kcq I used golang:1.12.0 image, so the base image is alpine:3.9. when I set
|
Is it better to move the sensor binary to the safe path like /tmp... ? |
@Ladicle Thanks for the extra info! The sensorPath is just the location where the sensor binary is located. It doesn't require write permissions for that location. It mounts it as a read-only volume into the container it creates. Which version of Mac OS X are you using? |
@kcq thank you for your response. I'm using the latest MacOS(Mojave Version 10.14.3). |
sensorMountInfo normally has a When a docker command mounts with |
ref: docker/for-mac#3582 |
Thanks for the reference @Ladicle! Wonder if it's security related somehow. Doesn't look like it's limited to Mojave (I was able to repro it with an older version of Mac OS X (10.11)). |
@Ladicle turns out it's related to how Docker for Mac shares its local files with the VM. If you open the File Sharing tab in Docker Preferences you'll see a list of directories it shares, so you can mount files from any of these directories or sub-directories. I'll add a little hack to detect the /usr/local/bin installation on Macs, so the master copies the sensor app to the |
The enhancement is in... and it will be available in the next release (1.25) or you can build it yourself if you don't want to wait :-) |
Thanks, @kcq. it worked well! |
There'll be 1.24.2 released in the next day, so there's no need to wait for 1.25 :-) |
1.24.2 is out :) |
docker:
Client: Docker Engine - Community
Version: 18.09.0
API version: 1.39
Go version: go1.10.4
Git commit: 4d60db4
Built: Wed Nov 7 00:47:43 2018
OS/Arch: darwin/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 18.09.0
API version: 1.39 (minimum version 1.12)
Go version: go1.10.4
Git commit: 4d60db4
Built: Wed Nov 7 00:55:00 2018
OS/Arch: linux/amd64
Experimental: false
docker-slim version:
darwin|Tetra|1.22-1-g2b02487|2b02487d633ef0b974978ab1a8a2fed099226ad6|2018-12-27_11:17:50AM (go1.11.4)
Binary files appeared in
/usr/local/bin
directoryAfter run command
docker-slim --debug build --http-probe --include-path /etc/passwd php:7.3-cli
fails with error
The text was updated successfully, but these errors were encountered: