Community discussions

MikroTik App
 
alibelali
just joined
Topic Author
Posts: 11
Joined: 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
/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
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
 
User avatar
antonsb
MikroTik Support
MikroTik Support
Posts: 385
Joined: Sun Jul 24, 2016 3:12 pm
Location: Riga, Latvia

Re: Setup Ubuntu on Docker Container  Topic 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 -
/container/print
/container/shell 0
 
tangent
Forum Guru
Forum Guru
Posts: 1333
Joined: Thu Jul 01, 2021 3:15 pm
Contact:

Re: Setup Ubuntu on Docker Container

Fri Oct 28, 2022 1:02 pm

I want to setup ubuntu docker container on RouterOS…

Containers are not VMs.
 
alibelali
just joined
Topic Author
Posts: 11
Joined: Mon Jan 23, 2017 9:45 am

Re: Setup Ubuntu on Docker Container

Fri Oct 28, 2022 7:24 pm

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

Re: Setup Ubuntu on Docker Container

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

Who is online

Users browsing this forum: No registered users and 4 guests