7 Build with Docker
清武 博二 edited this page 2020-05-16 12:31:37 +03:00

Clone Repo

git clone https://github.com/wownero/wownero

cd wownero

Build Docker Image

VBoxManage modifyvm default --cpus 2

VBoxManage modifyvm default --memory 4096

docker-machine start

docker-machine env

eval $(docker-machine env)

docker build --no-cache --network=host --build-arg NPROC=2 -t wownero:master .

docker images

Run Container

docker run -it --entrypoint /bin/bash <IMAGE ID>

docker ps

docker commit <CONTAINER ID> <REPOSITORY>

Copy Files From Container to Host

docker cp <Container Id>:/data/ ~/wownero_docker

Deleted Image

docker rmi <IMAGE ID> -f