Sign inSign up

openeuler/lua

Sponsored OSS

By openeuler

•Updated about 22 hours ago

Image
0

304

openeuler/lua repository overview

⁠Quick reference

⁠Lua | openEuler

Current Lua docker images are built on the openEuler⁠. This repository is free to use and exempted from per-user rate limits.

Lua is a powerful, efficient, lightweight, embeddable scripting language. It supports several programming styles: procedural, object-oriented, functional, data-driven, and data description. Lua combines simple procedural syntax with powerful data description constructs based on associative arrays and extensible semantics. Lua is dynamically typed, runs by interpreting bytecode on a register-based virtual machine, and has automatic memory management with incremental garbage collection, making it ideal for configuration, scripting, and rapid prototyping.

Learn more about Lua on The Programming Language Lua⁠.

The tag of each lua docker image is consist of the version of lua and the version of basic image. The details are as follows

TagCurrentlyArchitectures
5.5.1-oe2403sp4⁠lua 5.5.1 on openEuler 24.03-LTS-SP4amd64, arm64

⁠Usage

In this usage, users can select the corresponding {Tag} based on their requirements.

  • Pull the openeuler/lua image from docker

    docker pull openeuler/lua:{Tag}
    
  • Run with an interactive Lua shell

    docker run -it --rm openeuler/lua:{Tag}
    
  • Run a Lua script

    Create a file named hello.lua with the following content:

    print("Hello from " .. _VERSION)
    

    Then run it inside the container:

    docker run --rm -v $(pwd):/workspace openeuler/lua:{Tag} lua /workspace/hello.lua
    
  • Check the container logs

    docker run -d --name lua-demo openeuler/lua:{Tag} -e 'while true do print("Lua is running"); io.flush(); os.execute("sleep 5") end'
    docker logs lua-demo
    
  • Exec into the running container

    docker exec -it lua-demo lua
    

⁠Question and answering

If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images⁠.

Tag summary

Content type

Image

Digest

sha256:013ce6a02…

Size

65.2 MB

Last updated

about 22 hours ago

docker pull openeuler/lua

This week's pulls

Pulls:

6

Last week