This is the docker image for this project
https://github.com/KusakabeSi/RootlessRouter-UML
Prepare build kit
# make your computer able to rum arm64 binary
docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
# enable expremental feature
export DOCKER_CLI_EXPERIMENTAL=enabled
export DOCKER_BUILDKIT=1
docker buildx create --name mybuilder_az --driver docker-container
docker buildx use mybuilder_az
Build in local
docker buildx build --platform linux/amd64 -t whojk/dn42docker . --output="type=docker"
#Test in localhost
#-v /home/hujk/Documents/DN42-AutoPeer:/etc/dn42ap_py
docker run -it --rm --env-file=env_file_any -e NODE_NAME=tw --name=dn --network host --cap-add NET_ADMIN kskbsi/dn42docker
docker run -it --rm --env-file=env_file_any -e NODE_NAME=tw --name=dn --privileged kskbsi/dn42docker
docker exec -it dntw bash
run in env
docker run -it -d --restart=always --env-file=env_file_any -e NODE_NAME=tw --name=dn --network host --cap-add NET_ADMIN whojk/dn42docker
Build and push
docker buildx build --platform linux/amd64 -t kskbsi/rootlessrouter . --push
GIT_REPO_ADDR
: git repoSSH_KEY
:0/1
, runapt upgrade
at startupNODE_NAME
: node name