fix: runs config.sh
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
FROM ubuntu:22.04
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
WORKDIR /mininet
|
WORKDIR /root
|
||||||
|
|
||||||
RUN apt update && apt install -y \
|
RUN apt update && apt install -y \
|
||||||
mininet \
|
mininet \
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ sed -i '31s/.*/ router = self.addSwitch( '\''sw0'\'', protocols=["OpenFlo
|
|||||||
cd ..
|
cd ..
|
||||||
echo Load Open VSwitch kernel module
|
echo Load Open VSwitch kernel module
|
||||||
sudo modprobe openvswitch
|
sudo modprobe openvswitch
|
||||||
docker build . # build the docker file
|
docker compose up -d --force-recreate --build # build and start the docker file
|
||||||
docker compose up -d # start the docker file
|
docker exec --workdir /root mininet /etc/init.d/openvswitch-switch start
|
||||||
docker exec mininet /etc/init.d/openvswitch-switch start
|
docker exec --workdir /root mininet ln -s /mininet/pox /mininet/cs144_lab3/pox
|
||||||
docker exec mininet ln -s /mininet/pox /mininet/cs144_lab3/pox
|
docker exec --workdir /root mininet bash -c "cd /mininet/cs144_lab3 && ./config.sh"
|
||||||
Reference in New Issue
Block a user