File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Pull the latest Ubuntu image
4
+ docker pull ubuntu:latest
5
+
6
+ # Run a container from the Ubuntu image in detached mode with a custom name 'USPython' and share the Docker socket and binary
7
+ docker run -dit --name USPython -v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/docker:/usr/bin/docker ubuntu:latest
8
+
9
+ # Update package lists and install necessary packages in the running container
10
+ docker exec USPython bash -c " apt-get update && apt-get install -y sudo git docker-compose python3 python3-yaml"
11
+
12
+ # Clone the specified GitHub repository into the container
13
+ docker exec USPython git clone https://github.com/polarnaldo/USPython
14
+
15
+ # Run the specified Python script within the container
16
+ docker exec -it USPython python3 /USPython/USPython.py -m interface
You can’t perform that action at this time.
0 commit comments