Official Repository

Last pushed: 3 days ago
Short Description
Elixir is a dynamic, functional language for building scalable and maintainable applications.
Full Description

Supported tags and respective Dockerfile links

For more information about this image and its history, please see the relevant manifest file (library/elixir). This image is updated via pull requests to the docker-library/official-images GitHub repo.

For detailed information about the virtual/transfer sizes and individual layers of each of the above supported tags, please see the repos/elixir/tag-details.md file in the docker-library/repo-info GitHub repo.

What is Elixir?

Elixir is a dynamic, functional language designed for building scalable and maintainable applications.

Elixir leverages the Erlang VM, known for running low-latency, distributed and fault-tolerant systems, while also being successfully used in web development and the embedded software domain.

en.wikipedia.org/wiki/Elixir_(programming_language)

How to use this image

Run it as the REPL

➸ docker run -it --rm elixir
Erlang/OTP 18 [erts-7.2.1] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]

Interactive Elixir (1.2.1) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> System.version
"1.2.1"
iex(2)>
➸ docker run -it --rm -h elixir.local elixir iex --sname snode
Erlang/OTP 18 [erts-7.2.1] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]

Interactive Elixir (1.2.1) - press Ctrl+C to exit (type h() ENTER for help)
iex(snode@elixir)1> System.version
"1.2.1"
iex(snode@elixir)2> :c.uptime
14 seconds
:ok

Run a single Elixir exs script

$ docker run -it --rm --name elixir-inst1 -v "$PWD":/usr/src/myapp -w /usr/src/myapp elixir elixir your-escript.exs

Image Variants

The elixir images come in many flavors, each designed for a specific use case.

elixir:<version>

This is the defacto image. If you are unsure about what your needs are, you probably want to use this one. It is designed to be used both as a throw away container (mount your source code and start the container to start your app), as well as the base to build other images off of.

elixir:slim

This image does not contain the common packages contained in the default tag and only contains the minimal packages needed to run elixir. Unless you are working in an environment where only the elixir image will be deployed and you have space constraints, we highly recommend using the default image of this repository.

License

Copyright 2012 Plataformatec

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

View license information for the software contained in this image.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Supported Docker versions

This image is officially supported on Docker version 17.03.0-ce.

Support for older versions (down to 1.6) is provided on a best-effort basis.

Please see the Docker installation documentation for details on how to upgrade your Docker daemon.

User Feedback

Issues

If you have any problems with or questions about this image, please contact us through a GitHub issue. If the issue is related to a CVE, please check for a cve-tracker issue on the official-images repository first.

You can also reach many of the official image maintainers via the #docker-library IRC channel on Freenode.

Contributing

You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.

Before you start to code, we recommend discussing your plans through a GitHub issue, especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.

Documentation

Documentation for this image is stored in the elixir/ directory of the docker-library/docs GitHub repo. Be sure to familiarize yourself with the repository's README.md file before attempting a pull request.

Docker Pull Command

Comments (5)
zahari
17 days ago

Why there is no Dockerfile ?

c0b0
2 months ago

Hi all,

I'm one of the maintainers for the Docker Elixir.

We're not able to monitor comments here due to limitations in the comment system. Chances are if you comment here we probably won't see it for a long time.

If you have an issue with the image, or a question, you can file an issue on GitHub here:

https://github.com/c0b/docker-elixir/issues

Just wrote a new wiki https://github.com/c0b/docker-elixir/wiki/use-observer Since erlang:19.2 images and elixir:1.4.0 the tk libraries were added hence observer is supported, let us know if you meet any problems

Thanks,

tpdock
3 months ago

where is elixir:1.4 ? :)))

colelawr
4 months ago

I was having issues with it as well, but I resolved this by sharing volume .:/app and WORKDIR /app. Then, I was forced to run everything via docker-compose run {service} mix deps.get semi following this article http://davidanguita.name/articles/dockerizing-a-phoenix-project/

elpic
5 months ago

I don't know if it related with the image itself but aren't you getting errors from mix deps.get?

I tried many times and I'm not able to install dependencies.

Thanks you