Community discussions

MikroTik App
alibelali
刚刚加入了
Topic Author
Posts: 11
加入: Mon Jan 23, 2017 9:45 am

Setup Ubuntu on Docker Container

Wed Oct 26, 2022 8:12 pm

Hello
I have installed x86 RouterOS 7.6 on my pc and everything works fine but I want to setup ubuntu docker container on RouterOS using code below
Code:Select all
/container/add remote-image=ubuntu:bionic interface=veth1 root-dir=disk1/ubuntu logging=yes
the container will add successfully but when i try to run , it will stop after a few seconds
if i add
Code:Select all
tail -f /dev/null
in cmd field of container , it will not stop but there is no ssh access to it by ip of veth1
also there is no log about container; even if I enable container topic in logging
I don't know what Envs should be added
thanks
Top
antonsb
MikroTik Support
MikroTik Support
Posts: 340
加入: Sun Jul 24, 2016 3:12 pm
Location:Riga, Latvia

码头工人Re:安装UbuntuContainerTopic is solved

Thu Oct 27, 2022 8:16 am

openssh isn't installed in ubuntu containers by default. You can use shell to access your container -
Code:Select all
/container/print /container/shell 0
Top
tangent
Forum Veteran
Forum Veteran
Posts: 774
加入: Thu Jul 01, 2021 3:15 pm

码头工人Re:安装UbuntuContainer

Fri Oct 28, 2022 1:02 pm

I want to setup ubuntu docker container on RouterOS…

Containers are not VMs.
Top
alibelali
刚刚加入了
Topic Author
Posts: 11
加入: Mon Jan 23, 2017 9:45 am

码头工人Re:安装UbuntuContainer

Fri Oct 28, 2022 7:24 pm

openssh isn't installed in ubuntu containers by default. You can use shell to access your container -
Code:Select all
/container/print /container/shell 0
It was a huge help:)
Thanks a lot
Top
alibelali
刚刚加入了
Topic Author
Posts: 11
加入: Mon Jan 23, 2017 9:45 am

码头工人Re:安装UbuntuContainer

Fri Oct 28, 2022 7:31 pm

I want to setup ubuntu docker container on RouterOS…

Containers are not VMs.
I know, It's for testing purposes
but ability of new ROS for running that stuff is incredible
Thank you for noticing
Top

Who is online

Users browsing this forum: No registered users and 1 guest