I've been playing with RouterOS/x86 containers using Hyper-V, but I have not been able to get environment variables passing properly as per the example pihole youtube video. Apologies if there's something simple I'm missing, but I'm not seeing it. My plan was to experiment with ROS/x86 version before shifting to ARM.
This set of steps will reproduce the problem. I'm expecting the shell envrionment variables $FOO and $BAR to be set inside the container, but they are not.
Code:Select all
/container config set registry-url=https://registry-1.docker.io tmpdir=containers/pull /container envs add name=ubuntu_env key=FOO value=bar add name=ubuntu_env key=BAR value=baz /container/add remote-image=ubuntu:bionic interface=veth1 root-dir=container/ubuntu logging=yes envlist=ubuntu_env cmd="tail -f /dev/null" # wait for download and extract, then /container/start number=0 # wait for container to start, then /container/shell number=0 # "env" command shows shell environment variables are not set from ubuntu_env
Thanks in advance,
- aidan
Version info:
Code:Select all
[admin@ROS-x86] /container> /system/resource/print uptime: 1h17m21s version: 7.6 (stable) build-time: Oct/17/2022 10:55:40 factory-software: 7.1 free-memory: 331.8MiB total-memory: 960.0MiB cpu: Intel(R) cpu-count: 1 cpu-frequency: 4708MHz cpu-load: 0% free-hdd-space: 1846.9MiB total-hdd-space: 1934.1MiB write-sect-since-reboot: 1542112 write-sect-total: 1542112 architecture-name: x86_64 board-name: x86 platform: MikroTik