Sign inSign up

gh0st42/coreemu7

By gh0st42

•Updated over 4 years ago

Image
0

1.3K

gh0st42/coreemu7 repository overview

the core network emulator version 7 bundled to run on Linux and macOS (X11 required) it does expose the docker ssh (public key login) and grpc ports for interaction with the system

the following startup script can be helpful:

#!/bin/sh

SHARED="/tmp/shared"
PLATFORM=$(uname)

if [ -n "$1" ]; then
    SHARED=$(readlink -f $1)
    echo Using custom shared directory: $SHARED
else 
    echo Using default shared directory: $SHARED
fi

if [ "$PLATFORM" = "Darwin" ]; then
xhost + 127.0.0.1
docker run -it --rm \
    --name coreemu7 \
    -p 2000:22 \
    -p 50051:50051 \
    -v $SHARED:/shared \
    --cap-add=NET_ADMIN \
    --cap-add=SYS_ADMIN \
    -e SSHKEY="`cat ~/.ssh/id_rsa.pub`" \
    -e DISPLAY=host.docker.internal:0 \
    --privileged \
    gh0st42/coreemu7
else
xhost +local:root
docker run -it --rm \
    --name coreemu7 \
    -p 2000:22 \
    -p 50051:50051 \
    -v $SHARED:/shared \
    --cap-add=NET_ADMIN \
    --cap-add=SYS_ADMIN \
    -e SSHKEY="`cat ~/.ssh/id_rsa.pub`" \
    -e DISPLAY \
    -v /tmp/.X11-unix:/tmp/.X11-unix:rw \
    --privileged \
    gh0st42/coreemu7
fi

Tag summary

Content type

Image

Digest

Size

757 MB

Last updated

over 4 years ago

docker pull gh0st42/coreemu7