Last active
April 27, 2024 15:44
-
-
Save kangarie/a6fc524ad7c041892ca79831f84ce93b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mengaktifkan fitur docker pd mikrotik, akan diminta tekan tombol mode. lalu router reboot | |
/system/device-mode/update container=yes | |
# mempersiapkan ip yg akan dipakai docker | |
/interface veth add address=192.168.2.28/27 gateway=192.168.2.1 name=linux | |
# gabung ke bridge LAN yg sdh ada | |
/interface bridge port add bridge=bridge-LAN interface=linux | |
# pastikan sdh ada flashdisk/microusb/hdd external pd /usb1/ | |
# config docker | |
/container config set registry-url=https://registry-1.docker.io tmpdir=/usb1/tmp | |
# ambil image docker full os ubuntu server 22.04 | |
/container/add logging=yes cmd="/sbin/my_init" remote-image="phusion/baseimage:jammy-1.0.4" root-dir=usb1/linux interface=linux | |
# start docker | |
/container start number=0 | |
# masuk ke shell ubuntu | |
/container/shell number=0 | |
# setting key ssh | |
ssh-keygen -A | |
# start service ssh | |
/etc/init.d/ssh start | |
# ganti password root | |
passwd | |
# agar root bisa login, pastikan sdh mengaktifkan ini di /etc/ssh/sshd_config | |
PermitRootLogin yes | |
PasswordAuthentication yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment