Here is the whole log file
docker build -t julia_image .
Sending build context to Docker daemon 29.18kB
Step 1/11 : FROM ubuntu:18.04 as base
---> b89fba62bc15
Step 2/11 : RUN apt-get -y update; apt-get -y install curl
---> Using cache
---> ef8bcd55575d
Step 3/11 : ENV JULIA_PATH /julia
---> Using cache
---> eb4821a8384a
Step 4/11 : ENV PATH "$JULIA_PATH/bin:$PATH"
---> Using cache
---> c6cef2318b20
Step 5/11 : RUN mkdir -p "$JULIA_PATH"
---> Using cache
---> 818cb6e44194
Step 6/11 : RUN curl -fL -o julia.tar.gz https://julialang-s3.julialang.org/bin/linux/x64/1.6/julia-1.6.7-linux-x86_64.tar.gz
---> Running in 17b0c3ffad52
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 108M 100 108M 0 0 66.7M 0 0:00:01 0:00:01 --:--:-- 75.5M
Removing intermediate container 17b0c3ffad52
---> 4bf3a8af6737
Step 7/11 : RUN tar -xzf julia.tar.gz -C "$JULIA_PATH" --strip-components 1
---> Running in 043bf5762f66
Removing intermediate container 043bf5762f66
---> 2165abfb2e15
Step 8/11 : RUN rm julia.tar.gz
---> Running in 70c0ebd5cd9e
Removing intermediate container 70c0ebd5cd9e
---> ddc5ba9b5877
Step 9/11 : ENV JULIA_PROJECT /julia
---> Running in 0d7eae945237
Removing intermediate container 0d7eae945237
---> d9c6a2bd4315
Step 10/11 : RUN mkdir -p "$JULIA_PROJECT"
---> Running in a8646e9227e0
Removing intermediate container a8646e9227e0
---> 21e15ef38c0d
Step 11/11 : RUN julia -e 'using Pkg; Pkg.add("MosekTools")'
---> Running in 05574194d380
Installing known registries into `~/.julia`
Added registry `General` to `~/.julia/registries/General`
Resolving package versions...
Installed DiffRules ββββββββββββ v1.13.0
Installed MosekTools βββββββββββ v0.13.2
Installed Bzip2_jll ββββββββββββ v1.0.8+0
Installed IrrationalConstants ββ v0.2.2
Installed LogExpFunctions ββββββ v0.3.23
Installed BenchmarkTools βββββββ v1.3.2
Installed JSON βββββββββββββββββ v0.21.3
Installed Mosek ββββββββββββββββ v10.0.2
Installed MacroTools βββββββββββ v0.5.10
Installed CodecZlib ββββββββββββ v0.7.1
Installed InverseFunctions βββββ v0.1.8
Installed CommonSubexpressions β v0.3.0
Installed DataStructures βββββββ v0.18.13
Installed Preferences ββββββββββ v1.3.0
Installed SnoopPrecompile ββββββ v1.0.3
Installed MutableArithmetics βββ v1.2.3
Installed ChainRulesCore βββββββ v1.15.7
Installed OpenSpecFun_jll ββββββ v0.5.5+0
Installed ChangesOfVariables βββ v0.1.6
Installed Compat βββββββββββββββ v4.6.1
Installed DiffResults ββββββββββ v1.1.0
Installed OrderedCollections βββ v1.4.1
Installed TranscodingStreams βββ v0.9.11
Installed ForwardDiff ββββββββββ v0.10.35
Installed StaticArrays βββββββββ v1.5.17
Installed NaNMath ββββββββββββββ v1.0.2
Installed CodecBzip2 βββββββββββ v0.7.2
Installed StaticArraysCore βββββ v1.4.0
Installed Parsers ββββββββββββββ v2.5.8
Installed SpecialFunctions βββββ v2.2.0
Installed DocStringExtensions ββ v0.9.3
Installed JLLWrappers ββββββββββ v1.4.1
Installed MathOptInterface βββββ v1.13.1
Updating `/julia/Project.toml`
[1ec41992] + MosekTools v0.13.2
Updating `/julia/Manifest.toml`
[6e4b80f9] + BenchmarkTools v1.3.2
[d360d2e6] + ChainRulesCore v1.15.7
[9e997f8a] + ChangesOfVariables v0.1.6
[523fee87] + CodecBzip2 v0.7.2
[944b1d66] + CodecZlib v0.7.1
[bbf7d656] + CommonSubexpressions v0.3.0
[34da2185] + Compat v4.6.1
[864edb3b] + DataStructures v0.18.13
[163ba53b] + DiffResults v1.1.0
[b552c78f] + DiffRules v1.13.0
[ffbed154] + DocStringExtensions v0.9.3
[f6369f11] + ForwardDiff v0.10.35
[3587e190] + InverseFunctions v0.1.8
[92d709cd] + IrrationalConstants v0.2.2
[692b3bcd] + JLLWrappers v1.4.1
[682c06a0] + JSON v0.21.3
[2ab3a3ac] + LogExpFunctions v0.3.23
[1914dd2f] + MacroTools v0.5.10
[b8f27783] + MathOptInterface v1.13.1
[6405355b] + Mosek v10.0.2
[1ec41992] + MosekTools v0.13.2
[d8a4904e] + MutableArithmetics v1.2.3
[77ba4419] + NaNMath v1.0.2
[bac558e1] + OrderedCollections v1.4.1
[69de0a69] + Parsers v2.5.8
[21216c6a] + Preferences v1.3.0
[66db9d55] + SnoopPrecompile v1.0.3
[276daf66] + SpecialFunctions v2.2.0
[90137ffa] + StaticArrays v1.5.17
[1e83bf80] + StaticArraysCore v1.4.0
[3bb67fe8] + TranscodingStreams v0.9.11
[6e34b625] + Bzip2_jll v1.0.8+0
[efe28fd5] + OpenSpecFun_jll v0.5.5+0
[0dad84c5] + ArgTools
[56f22d72] + Artifacts
[2a0f44e3] + Base64
[ade2ca70] + Dates
[f43a241f] + Downloads
[b77e0a4c] + InteractiveUtils
[b27032c2] + LibCURL
[76f85450] + LibGit2
[8f399da3] + Libdl
[37e2e46d] + LinearAlgebra
[56ddb016] + Logging
[d6f4376e] + Markdown
[a63ad114] + Mmap
[ca575930] + NetworkOptions
[44cfe95a] + Pkg
[de0858da] + Printf
[9abbd945] + Profile
[3fa0cd96] + REPL
[9a3f8284] + Random
[ea8e919c] + SHA
[9e88b42a] + Serialization
[6462fe0b] + Sockets
[2f01184e] + SparseArrays
[10745b16] + Statistics
[fa267f1f] + TOML
[a4e569a6] + Tar
[8dfed614] + Test
[cf7118a7] + UUIDs
[4ec0a83e] + Unicode
[e66e0078] + CompilerSupportLibraries_jll
[deac9b47] + LibCURL_jll
[29816b5a] + LibSSH2_jll
[c8ffd9c3] + MbedTLS_jll
[14a3606d] + MozillaCACerts_jll
[05823500] + OpenLibm_jll
[83775a58] + Zlib_jll
[8e850ede] + nghttp2_jll
[3f19e933] + p7zip_jll
Building Mosek β `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/4d639c16d45bd7962613ff984046c120915d82b2/build.log`
ERROR: Error building `Mosek`:
ERROR: LoadError: MethodError: no method matching hasregistrykey(::WinReg.RegKey, ::String, ::String)
Closest candidates are:
hasregistrykey(!Matched::UInt32, ::String, ::String) at /root/.julia/packages/Mosek/5QnPP/deps/build.jl:36
Stacktrace:
[1] top-level scope
@ ~/.julia/packages/Mosek/5QnPP/deps/build.jl:189
[2] include(fname::String)
@ Base.MainInclude ./client.jl:444
[3] top-level scope
@ none:5
in expression starting at /root/.julia/packages/Mosek/5QnPP/deps/build.jl:151
Stacktrace:
[1] pkgerror(msg::String)
@ Pkg.Types /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Types.jl:55
[2] (::Pkg.Operations.var"#82#87"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec})()
@ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1067
[3] withenv(::Pkg.Operations.var"#82#87"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec}, ::Pair{String, String}, ::Vararg{Pair{String, B} where B, N} where N)
@ Base ./env.jl:161
[4] (::Pkg.Operations.var"#109#113"{String, Pkg.Operations.var"#82#87"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec}, Pkg.Types.PackageSpec})()
@ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1565
[5] with_temp_env(fn::Pkg.Operations.var"#109#113"{String, Pkg.Operations.var"#82#87"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec}, Pkg.Types.PackageSpec}, temp_env::String)
@ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1467
[6] (::Pkg.Operations.var"#108#112"{Pkg.Operations.var"#82#87"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec}, Pkg.Types.Context, Pkg.Types.PackageSpec, String, Pkg.Types.Project, String})(tmp::String)
@ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1540
[7] mktempdir(fn::Pkg.Operations.var"#108#112"{Pkg.Operations.var"#82#87"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec}, Pkg.Types.Context, Pkg.Types.PackageSpec, String, Pkg.Types.Project, String}, parent::String; prefix::String)
@ Base.Filesystem ./file.jl:729
[8] mktempdir(fn::Function, parent::String) (repeats 2 times)
@ Base.Filesystem ./file.jl:727
[9] sandbox(fn::Function, ctx::Pkg.Types.Context, target::Pkg.Types.PackageSpec, target_path::String, sandbox_path::String, sandbox_project_override::Pkg.Types.Project)
@ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1506
[10] build_versions(ctx::Pkg.Types.Context, uuids::Vector{Base.UUID}; verbose::Bool)
@ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1048
[11] build_versions
@ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:975 [inlined]
[12] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}, new_git::Vector{Base.UUID}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform)
@ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1264
[13] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::Base.Iterators.Pairs{Symbol, Base.PipeEndpoint, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.PipeEndpoint}}})
@ Pkg.API /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:204
[14] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.PipeEndpoint, kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:80
[15] add(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:78
[16] #add#23
@ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:76 [inlined]
[17] add
@ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:76 [inlined]
[18] #add#22
@ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:75 [inlined]
[19] add(pkg::String)
@ Pkg.API /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:75
[20] top-level scope
@ none:1
The command '/bin/sh -c julia -e 'using Pkg; Pkg.add("MosekTools")'' returned a non-zero code: 1