dotnet / corefx-tools

Place to include various misc tools for .NET and .NET Core.
MIT License
58 stars 41 forks source link

Error when building Docker image from demo #69

Open xakep139 opened 6 years ago

xakep139 commented 6 years ago

Running docker build with Dockefile produces the following error:

Step 7/10 : RUN apt-get -y install linux-tools-common linux-tools-`uname -r` linux-cloud-tools-`uname -r` lttng-tools lttng-modules-dkms liblttng-ust0 zip
 ---> Running in bcc38dd5d269
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package linux-tools-4.9.49-moby
E: Couldn't find any package by regex 'linux-tools-4.9.49-moby'
E: Unable to locate package linux-cloud-tools-4.9.49-moby
E: Couldn't find any package by regex 'linux-cloud-tools-4.9.49-moby'
The command '/bin/sh -c apt-get -y install linux-tools-common linux-tools-`uname -r` linux-cloud-tools-`uname -r` lttng-tools lttng-modules-dkms liblttng-ust0 zip' returned a non-zero code: 100
jayd16 commented 5 years ago

I see the same or at least a similar issue with the current version of Docker on Windows. I assume this means that linux tools for the linuxkit kernel are not in the default apt repos. Do these exist? The linux tools and perf binaries for linuxkit need to be built added to apt to get this DockerFile to work.

Ironically this means Docker for Windows isn't working but I assume that this script would work if I was running on an Ubuntu machine.

Step 7/10 : RUN apt-get -y install linux-tools-common linux-tools-`uname -r` linux-cloud-tools-`uname -r` lttng-tools lttng-modules-dkms liblttng-ust0 zip
 ---> Running in d585d91c6749
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package linux-tools-4.9.125-linuxkit
E: Couldn't find any package by regex 'linux-tools-4.9.125-linuxkit'
E: Unable to locate package linux-cloud-tools-4.9.125-linuxkit
E: Couldn't find any package by regex 'linux-cloud-tools-4.9.125-linuxkit'