Skip to content
/

When recently creating a Linux Docker image using Docker for Windows, I ran into a couple of vague errors. Searching online for the error messages, there weren’t any solutions. But luckily some suggestions put me on the right track.
In this post I write about the solutions I found.

When recently creating a Linux Docker image using Docker for Windows, I ran into a couple of vague errors. Searching online for the error messages, there weren’t any solutions. But luckily some suggestions put me on the right track.
In this post I describe the solutions I found. Hopefully preventing you wasting time on the same issues.

The Dockerfile

My Dockerfile is based on the Azure App Service WordPress 0.3 Dockerfile.
In relation to the errors I encountered, the most important part in this file is the that is declared:

ENTRYPOINT ["entrypoint.sh"]

After adding the entrypoint.sh file to the directory where I build my image, I ran the docker build command:
docker build --tag blog/demo:v1 .

Once the build was completed, I launched the image locally:
docker run blog/demo:v1

But that wasn’t as straight forward as expected.

Linefeeds matter: no such file or directory

First, I got the following response:

standard_init_linux.go:195: exec user process caused "no such file or directory"

This is quite a generic error message and can describe a lot of files or directories that are part of the process of building and running Docker images and containers. My first impression was that the image building was not working correctly. But after a lot of rebuilds, the error didn’t go away.
I finally found the real source of the issue: changing the linefeeds in the entrypoint.sh file from CRLF to LF, somehow made the file discoverable.

Visual Studio Code showing CRLF in the status bar

Visual Studio Code showing CRLF in the status bar

Changing the linefeed option in Visual Studio Code

Changing the linefeed option

However, I still couldn’t run my container, only the error message had changed...

Encoding matters: exec format error

Executing the docker run command again, the output was now a different error:

standard_init_linux.go:195: exec user process caused "exec format error"

The mentioning of format error made me guess that this had something to do with incompatibilities running a Linux image on a Windows OS, or something related to x86 vs. x64. Many articles you’ll find searching on the error message are pointing in that direction.
Luckily, I overheard a colleague solving a completely unrelated issue by changing the encoding of his XML file from UTF-8 to ISO-8859-15. I figured to just try that with my file... solving the issue!

Save the file with reencoding dialog in Visual Studio Code

Save the file with reencoding

Select the file encoding dialog in Visual Studio Code

Select the file encoding

Conslusion

When using Docker on Windows and working with Linux containers, make sure the encoding and linefeeds of the files involved are correct, otherwise you are hit with vague error messages that are not helpful at all.

Filed under Docker
Last update:
/

Today I presented a session, in Dutch, titled Gebruik Azure Key Vault in je applicaties en zorg dat niemand achter je geheimen komt during the TechDays 2017 event. The presentation is about using Azure Key Vault to improve security of your solutions.
I’m sharing my slides and code, so you can start improving the security of your solutions and deployments using Azure Key Vault, the Azure Key Vault Configuration Provider and Azure Key Vault Storage Account Keys.

Today I presented a session, in Dutch, titled Gebruik Azure Key Vault in je applicaties en zorg dat niemand achter je geheimen komt during the event.
The session was about using Azure Key Vault to improve security of your solutions.

I’d like to thank everyone attending this session. It was nice to see the room overflowing. Too bad the demo gods didn’t feel worshipped enough, and had to mess up my Azure Storage connection. :/

I’m sharing my slides and code, so you can start improving the security of your solutions and deployments using , the and .
The code is available at GitHub.

Any questions about my session? Just contact me.

Filed under Azure
Last update:
/

This will be my second post about Bing for business: “the new intelligent search experience for Office 365 and Microsoft 365, which uses AI and the Microsoft Graph to deliver more relevant search results based on your organizational context”.
In this post, we will be focusing on “People Search”.

This will be my second post about Bing for business, the new intelligent search experience for Office 365 and Microsoft 365, which uses AI and the Microsoft Graph to deliver more relevant search results based on your organizational context.

We covered branding in the first post. In this post, we will be focusing on People Search.

Welcome bar

When a user is logged in, Bing will show a welcome bar with some suggestions for queries.

Let’s use the first query: me.

Searching for me

When searching for me, besides all normal Bing search results, you will get your own profile.

As we can see, the person result page is structured in 3 columns.

Left column, profile

In the left column, the Azure AD profile information is shown.

  • My picture
  • My full name
  • My function title
  • My phone number
  • My e-mail address
  • My Skype for business alias

Center column, organization

In the center column, the organizational position is shown.

  • My manager
  • My peers (sharing the same manager)
    When hovering over a profile image, the name and function are shown
  • My department

Right column, events

In the right column, data from the agenda is shown.

  • My timeline for today
  • My first 2 upcoming events, with the title, time and location

In total, this gives a good overview of my contact details, position in the organization and my schedule.

Searching for sander

Chances are that you won’t be searching for your own profile very often.
So, let’s start looking for the profile of a colleague. For this I entered sander as search query in Bing.

Although there are multiple colleagues working at Winvision with a first name of Sander, the person that is displayed is the one closest in the organizational structure to me.

The contact details are now an ideal way to start a call or chat with your colleague. Or you can send an e-mail, if you prefer that as form of communication.

The agenda now doesn’t show the first 2 events of the person you are looking at, but the first 2 events where you’re both part of! This is where the use of the Graph API really starts to shine.

The other sander’s

As mentioned before, there are multiple colleagues with the first name of Sander. This is also indicated at the bottom of the profile, where the first alternative is displayed.

We can now directly navigate to Sander Hoek's profile if we want, or we can open a list of all people matching the query:

This concludes this post about the people search in Bing for business. The things shown in this post might change in the future, as the product is still under development.

If you are interested in receiving an invitation to participate in the private preview, visit http://aka.ms/b4bprivatepreview.

Filed under Office
Last update: