

This is the way you transfer parameters to the container.Inside the image, a script will check that accept_eula indeed is set to Y before starting the container. e is really short for –env, meaning that what you do here is to set an environment variable called accept_eula to Y.

As you might have seen in other places, as one of the options, you need to accept the eula using -e accept_eula=Y When running the NAV on Docker images, we don’t use command and args. The format of Docker run is: docker run image Most of the other ways listed below will end up in a docker run command somewhere behind the scenes. docker runĭocker run is the raw way of spinning up a new container based on a Docker image. Upcoming blog posts will then attempt to explain how to achieve various scenarios through configuring NAV on Docker and whether you choose one or the other way of running Docker, you should be able to achieve these requirements. All the examples in this blog post will be very simple, but they will explain how to define parameters used to configure the container and how to share PowerShell scripts with the container, which can do more advanced configurations. In the following, I will go through a number of different ways to start a NAV on Docker. In the end, what you get is NAV running somewhere and you can connect, demo, use and develop using it. Some of these methods will run the container locally, some will spin up the container on Azure. If you haven’t read this blog post, then please do so before continuing here.Ī lot of examples (like the prior blog post) will use docker run to start a NAV on Docker container, but there are actually a lot of different ways to start these containers. This blog post reflects the old way of using NAV/BC on Docker and references NavContainerHelper, which is outdated.

We now publish artifacts, which can be used to spin up containers and BcContainerHelper has replaced NavContainerHelper. Update 0: Microsoft stopped creating images for Docker in the summer of 2020.
