![]() ![]() Make sure container has been added and status is > container/printĩ. Use ``logging=yes`` to see container output in log with tagsĨ. Create container from image > /container/add file=my-container.tar interface=veth1 envlist=foo root-dir=disk1/foo mounts=etc,opt ![]() With whatever container have in ``dst`` location.ħ. If ``src`` directory does not exist on first time use then it will be populated Define mounts if > /container/mounts/add name=etc src=disk1/etc > /container/mounts/add name=opt src=disk1/opt dst=/opt Create environment variables for container if > /container/envs/add list=foo name=SECRET > /container/envs/add list=foo name=FOO value=barĦ. Setup NAT for outgoing > /ip/firewall/nat/add chain=srcnat action=masquerade src-address=172.17.0.0/16ĥ. Create bridge for containers and add veth to > /interface/bridge/add > /ip/address/add address=172.17.0.1/16 > /interface/bridge/port add bridge=docker interface=veth1Ĥ. $ docker save docker/example-container > my-container.tarĢ. ![]() Also note that container's architecture should match with the router's. Get Docker image as tar archive and copy to router (currently there is no 'pull' command in RouterOS, so containers should be exported from a working Docker environment). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |