Running Flow in Docker

Running the Norne simulation case

We are now ready to run the Norne benchmark. To access the data we just downloaded from within the Docker container, we must mount it when running docker. The image has been set up so that the directory “/shared_host” in the Docker container can point to a directory on the host. This can be done in the following fashion:

# List the Norne directory on the host
ls opm-data-master/norne

# Save path of current directory in environment variable
HOST_DIR=$(pwd)

# Mount the path in the docker container
sudo docker run -v $HOST_DIR:/shared_host openporousmedia/opmreleases:latest ls /shared_host/opm-data-master/norne

The result should be similar to the following:

docker_mount

Now we can run the Norne benchmark using the following docker command

sudo docker run -v $HOST_DIR:/shared_host openporousmedia/opmreleases:latest flow output_dir="/shared_host/output" /shared_host/opm-data-master/norne/NORNE_ATW2013.DATA

You should now see the Norne case start running, as shown in the following (note: outdated image refers to flow_ebos rather than flow)

docker_run_norne_start

The Norne case this way takes some time to complete, around 15 minutes on a modern computer.

Because we asked flow to save the simulation results under /shared_host/output in the container, this is now available directly in the docker_simulations directory on the host:

# List directories of "docker_simulations"
ls

# List output of running the Norne simulation
ls output

docker_run_norne_end

Congratulations! You have now completed running a simulation with flow using a Docker container. We can now inspect the results using ResInsight as described in the Running Norne tutorial or another tool of your choice.