# SimpleContainerGenerator: Create container images for using Julia packages (especially useful on systems without Internet access)

**URL:** https://discourse.julialang.org/t/simplecontainergenerator-create-container-images-for-using-julia-packages-especially-useful-on-systems-without-internet-access/37736
**Category:** Package Announcements
**Tags:** package, announcement
**Created:** [April 17, 2020, 5:04am UTC](https://discourse.julialang.org/t/simplecontainergenerator-create-container-images-for-using-julia-packages-especially-useful-on-systems-without-internet-access/37736 "2020-04-17T05:04:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dilumaluthge](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dilumaluthge/32/29283_2.png) [@dilumaluthge](https://discourse.julialang.org/u/dilumaluthge)
#### Post date: [April 17, 2020, 5:04am UTC](https://discourse.julialang.org/t/simplecontainergenerator-create-container-images-for-using-julia-packages-especially-useful-on-systems-without-internet-access/37736/1 "2020-04-17T05:04:48Z")

</div>

SimpleContainerGenerator automates the process of creating container images (Docker, Singularity, etc.) for using Julia packages.

This is especially useful if you need to run Julia packages on systems without any Internet or network access.

To reduce load times, SimpleContainerGenerator uses PackageCompiler to automatically compile the Julia packages inside the container into a custom Julia system image (sysimage).

Still a work in progress, so expect some rough edges.

> **[GitHub - JuliaContainerization/SimpleContainerGenerator.jl: Create container...](https://github.com/JuliaContainerization/SimpleContainerGenerator.jl)**
>
> Create container images for using Julia packages (especially useful in environments without Internet access) - GitHub - JuliaContainerization/SimpleContainerGenerator.jl: Create container images fo...

---

<div class="post-metadata">

### Author: ![PeterKeffer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/peterkeffer/32/18944_2.png) [@PeterKeffer](https://discourse.julialang.org/u/PeterKeffer)
#### Post date: [July 24, 2020, 11:59pm UTC](https://discourse.julialang.org/t/simplecontainergenerator-create-container-images-for-using-julia-packages-especially-useful-on-systems-without-internet-access/37736/2 "2020-07-24T23:59:50Z")

</div>

Hey,  
first of all thank you so much for your amazing work!

I’m super new to Julia and still struggling to understand Pkg and some more concepts of Julia.  
I just tried to make a docker container with my locally developed package.

```julia
pkgs = [
    (name = "Random",), # Replace Foo, Bar, Baz, etc. with the names of actual packages that you want to use
    (name = "StatsBase",),
    (name = "MyPkg", url="https://github.com/UserName/MyPkg"),
]

```

Every time there comes an error: “LoadError: expected package MyPkg to be registered julia”  
So what I’m doing wrong? ☹  
The url, helps to get over the first hurdle, but after that the url part isn’t getting used any more.

---

<div class="post-metadata">

### Author: ![djholiver](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djholiver/32/50470_2.png) [@djholiver](https://discourse.julialang.org/u/djholiver)
#### Post date: [April 19, 2021, 9:24pm UTC](https://discourse.julialang.org/t/simplecontainergenerator-create-container-images-for-using-julia-packages-especially-useful-on-systems-without-internet-access/37736/3 "2021-04-19T21:24:32Z")

</div>

Hi @dilumaluthge ,

I am trying to create a docker image from my local code - as @PeterKeffer appears to be doing.

the Examples seem to refer to registered packages, how can I just call "SimpleContainerGenerator.create\_dockerfile(“C:\PathToCodeSource”)?

Regards

---

<div class="post-metadata">

### Author: ![dilumaluthge](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dilumaluthge/32/29283_2.png) [@dilumaluthge](https://discourse.julialang.org/u/dilumaluthge)
#### Post date: [April 19, 2021, 9:25pm UTC](https://discourse.julialang.org/t/simplecontainergenerator-create-container-images-for-using-julia-packages-especially-useful-on-systems-without-internet-access/37736/4 "2021-04-19T21:25:37Z")

</div>

I’m not sure if we support that yet. Can you open a feature request?
