Start container:
docker run -ti --privileged -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev/bus/usb:/dev/bus/usb -v $XAUTH:/root/.Xauthority --net host ericssonsics/5g-coral-v1:rh
cd pybombs
source setup.sh
Configure network:
Ethernet network:=docker run -ti --privileged -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev/bus/usb:/dev/bus/usb -v $XAUTH:/root/.Xauthority --net network_lora --ip 172.20.0.4 ericssonsics/5g-coral-v1:rh
docker network create --subnet=172.20.0.0/16 network_lora
To find network running in docker container:
docker inspect "container name
Copy and paste:
docker cp foo.txt mycontainer:/foo.txt
docker cp mycontainer:/foo.txt foo.txt
sudo docker cp /home/user/gr_oot/gr-packet_scheduler zen_maxwell:/home/user/Gitlab_upload_LoRa/
Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]
Docker login and push
docker login -u eabsics -p ieatrise
docker build . -t eabsics/5g-dive:tagname
docker push eabsics/5g-dive:tagname
删除所有docker container/images
docker container rm $(docker container ls -aq)
docker container stop $(docker container ls -aq)
docker rmi $(docker images)
保存docker存为local image
sudo docker commit [CONTAINER_ID] [new_image_name]
sudo docker commit deddd39fa163 ubuntu-nmap
网友评论