HUB
Sign inSign up

nicholasyue/aztek

By nicholasyue

•Updated 2 days ago

Containerized Aztek - For details about Aztek, see https://github.com/srlegrand/Aztek

Image
1

184

nicholasyue/aztek repository overview

⁠Aztek

Aztek⁠ in a container: an open-source 3D package with Maya-style modelling, MEL and maya.cmds scripting, and a Vulkan viewport. Run it in your web browser, on your Linux desktop, or headless for scripts and screenshots, using docker run or podman run.

This is an independent packaging of Aztek's official Linux release, not made by the Aztek project. Report Aztek bugs upstream⁠ and image bugs on GitLab⁠.

⁠Quick start

docker run --rm -p 127.0.0.1:6080:6080 nicholasyue/aztek

Open http://localhost:6080/vnc.html⁠ and click Connect. Aztek's window fills the browser tab.

Page doesn't load? If you use a VPN (e.g. Mullvad), it may block Docker's network: run docker run --rm --network host -e NOVNC_LISTEN=127.0.0.1 nicholasyue/aztek instead.

With Podman, use the full name: podman run --rm -p 127.0.0.1:6080:6080 docker.io/nicholasyue/aztek.

Stop it with Ctrl+C in the terminal, docker stop, or by quitting Aztek.

Anything you don't save into a mounted folder is lost when the container stops. See Saving your work⁠.

⁠Choose how to run it

The first argument after the image name selects a mode; anything after the mode is passed to Aztek ([scene.ma|scene.mb] [--script file.mel|file.py] [--screenshot out.png]).

ModeUse it forHost OS
vnc (default)Aztek in a browser tab, on this machine or a remote serverLinux, macOS, Windows
x11An ordinary window on your Linux desktopLinux (X11 or Wayland)
batchRunning a script and/or saving a screenshot, without a displayAny
⁠Browser (vnc)
docker run --rm -p 127.0.0.1:6080:6080 nicholasyue/aztek
  • Keep 127.0.0.1: in -p. Without a password the session is unauthenticated, and -p 6080:6080 would let anyone on your network use it.

  • Password: -e VNC_PASSWORD=secret makes noVNC ask for one.

  • Screen size: -e GEOMETRY=2560x1440 (default 1920x1080). In noVNC's side menu, Scaling mode → Local scaling fits it to the window.

  • Remote server: run the command above on the server, then tunnel the port from your own machine: ssh -L 6080:localhost:6080 you@server and open http://localhost:6080/vnc.html⁠ locally.

  • VPN blocks it (the page doesn't load, e.g. with Mullvad): some VPNs block Docker's private network. Use the host network instead, and keep noVNC on localhost:

    docker run --rm --network host -e NOVNC_LISTEN=127.0.0.1 nicholasyue/aztek
    

    Without NOVNC_LISTEN=127.0.0.1, --network host exposes port 6080 on every network interface.

⁠Linux desktop (x11)
xhost +SI:localuser:$(id -un)     # allow your own user's containers onto the display (once per login)

# Docker
docker run --rm -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix \
  --user $(id -u):$(id -g) nicholasyue/aztek x11

# Podman (rootless)
podman run --rm -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix \
  --userns=keep-id docker.io/nicholasyue/aztek x11

Add the GPU flags⁠ for a fast viewport. Aztek runs on X11 only; on a Wayland desktop it uses XWayland, which GNOME and KDE provide by default.

⁠Headless (batch)
docker run --rm -v "$PWD:/work" --user $(id -u):$(id -g) nicholasyue/aztek \
  batch --script /work/job.py --screenshot /work/out.png

Aztek starts on a virtual display (Xvfb) and runs the script. With --screenshot it saves the picture and exits. Without --screenshot, Aztek stays open after the script (as the GUI would), so end the script with cmds.quit(force=True), or the container keeps running. A minimal job.py:

import maya.cmds as cmds
cmds.polyCube(name="box")
cmds.file(rename="/work/box.ma")
cmds.file(save=True, type="mayaAscii")
cmds.quit(force=True)      # exit Aztek, and with it the container

print() output goes to Aztek's script editor and status line, not to the terminal: write results to files in the mounted folder.

⁠Try the examples

The image includes Aztek's example scenes and scripts (over fifty: modelling, rigging, dynamics, rendering, ...), the same ones as the examples folder⁠ of the Aztek release in the image. They are at /examples (read-only).

  • In Aztek: File > Examples opens them, a submenu per area. Save any changes into /work (see Saving your work⁠).

  • Render one with Harold, headless: Aztek's path tracer runs on the CPU and needs no display. This renders the Cornell box into the current folder (about a minute at this size on a laptop):

    docker run --rm -v "$PWD:/work" --user $(id -u):$(id -g) nicholasyue/aztek \
      aztek -render -x 480 -y 480 -as 16 -rd /work -of png /examples/cornell_box.ma
    

    -x/-y set the size, -as the camera samples (more is cleaner and slower), -rd the output folder, -of the format (png, exr, ...), and -s/-e/-cam a frame range and camera. Always give -rd: the default is next to the scene, which is read-only here. See upstream's Harold documentation⁠.

  • Copy them to your machine to edit them or open them with your own tools:

    mkdir -p aztek-examples
    docker run --rm -v "$PWD/aztek-examples:/out" --user $(id -u):$(id -g) nicholasyue/aztek cp -r /examples/. /out
    
  • Use a newer set from a clone of the Aztek repository by mounting it over the bundled one: -v /path/to/Aztek/examples:/examples:ro. Examples from a newer Aztek than the image's may use features it doesn't have yet.

⁠Saving your work

The container's own files disappear when it stops (--rm). Mount a folder from your machine and save into it:

docker run --rm -p 127.0.0.1:6080:6080 -v "$PWD:/work" --user $(id -u):$(id -g) nicholasyue/aztek

In Aztek, open and save scenes under /work.

  • Docker on Linux: --user $(id -u):$(id -g) makes saved files belong to you. Without it they are written as uid 1000.
  • Podman (rootless): use --userns=keep-id instead, for the same reason.
  • Docker Desktop (macOS, Windows): -v "$PWD:/work" is enough. On Windows PowerShell use -v "${PWD}:/work".
  • SELinux hosts (Fedora, RHEL, Alma, Rocky): add :Z to the mount, e.g. -v "$PWD:/work:Z".

Aztek's preferences live inside the container and reset each run. To keep them, give them a named volume, e.g. -v aztek-home:/home/aztek (the image's default user only, i.e. without --user).

⁠GPU acceleration

Without a GPU the viewport renders on the CPU (Mesa lavapipe). It works but is slow with heavy scenes. To use a GPU, add:

GPUDockerPodman
Intel / AMD--device /dev/dri --group-add $(stat -c %g /dev/dri/renderD128)--device /dev/dri --group-add keep-groups
NVIDIA--gpus all--device nvidia.com/gpu=all

NVIDIA needs the proprietary driver and the NVIDIA Container Toolkit⁠ on the host. For Podman, also generate the CDI spec once: sudo nvidia-ctk cdi generate --output=/etc/cdi/nvidia.yaml. The image already asks the toolkit for the graphics (Vulkan) libraries, not just CUDA.

GPU passthrough is for Linux hosts. On Docker Desktop (macOS, Windows), expect the viewport to render on the CPU.

If Aztek crashes at start on an NVIDIA machine, force the CPU renderer to tell a driver problem from anything else: -e VK_DRIVER_FILES=/usr/share/vulkan/icd.d/lvp_icd.x86_64.json.

⁠Settings

VariableDefaultMeaning
VNC_PASSWORD(none)vnc mode: password for the browser session. Unset = no password.
GEOMETRY1920x1080vnc and batch modes: screen size.
NOVNC_PORT6080Port noVNC listens on inside the container.
NOVNC_LISTENall addressesAddress noVNC binds to. Set 127.0.0.1 with --network host.
VK_DRIVER_FILES(auto)Standard Vulkan loader setting; forces a particular Vulkan driver.

Any other first argument is run as a command, e.g. docker run --rm -it nicholasyue/aztek bash for a shell.

⁠Tags

TagMeaning
latestNewest image. Moves.
2.505.0Newest image of Aztek 2.505.0. Moves if the packaging is fixed.
2.505.0-r1, -r2, ...One exact image: Aztek 2.505.0, packaging revision n. Never changes; pin this in scripts and pipelines.

Aztek releases often; this image follows its releases periodically, not every one.

⁠Platforms

linux/amd64 only for now. On Apple Silicon Macs, Docker Desktop runs it through emulation, which works but is slow.

⁠Troubleshooting

SymptomFix
Browser page doesn't loadCheck the container is still running (docker ps). If you use a VPN, use the --network host -e NOVNC_LISTEN=127.0.0.1 form above.
x11: "cannot open display" / "Authorization required"Run the xhost +SI:localuser:$(id -un) line again, and check -e DISPLAY and the /tmp/.X11-unix mount.
Viewport black, Vulkan error in the status lineNo usable Vulkan driver: add the GPU flags, or remove them to use the CPU renderer.
"Permission denied" saving into /workAdd --user $(id -u):$(id -g) (Docker) or --userns=keep-id (Podman); on SELinux hosts add :Z to the mount.
A "UTF-8 locale" message at startHarmless: Qt reports that it switched to C.UTF-8.

⁠What's inside

  • Aztek's official x86_64 release AppImage, unpacked and checked against its SHA-256. It carries its own Qt 6.8, Python 3.13 and PySide6.
  • AlmaLinux 9 with the X, OpenGL and Vulkan libraries Aztek needs; Mesa (Intel, AMD and CPU rendering); Xvfb; TigerVNC and noVNC.
  • Runs as a non-root user (aztek, uid 1000) and also works as any --user uid. Exposes port 6080 (noVNC) only.
  • About 340 MB to download.

Tag summary

Content type

Image

Digest

sha256:e3bc92d67…

Size

314.6 MB

Last updated

2 days ago

docker pull nicholasyue/aztek