My teammates and I are working on a backend, which would provide ros gazebo simulation that is hosted online. Due to the fact that it is very hard to let several instance of ros running on the same machine, we have decided that we will have a container running for each instance of ros gazebo. However, it there any tool to orchestrate the containers (running, stopping)? It's not like kubernetes style of managing containers, but like I need to spin a container per api call. Thanks in advance!
How can I spin a docker cotainer per api call?
237 Views Asked by never0lie At
1
There are 1 best solutions below
Related Questions in DOCKER
- sqlplus myusername/mypassword@ORCL not working with Oracle on Docker
- Golang == Error: OCI runtime create failed: unable to start container process: exec: "./bin": stat ./bin: no such file or directory: unknown
- Only the first SQL script gets executed inside Docker Postgres container
- Retrieve the Dockerfile configuration from the Kubernetes and also change container Java parameter?
- Polars with Rust: Out of Memory Error when Processing Large Dataset in Docker Using Streaming
- Compiling eBPF program in Docker fails due to missing '__u64' type
- AttributeError: module 'numba' has no attribute 'generated_jit'
- Phoenix in a docker dev environment - generated code can't be saved from VSCode
- Docker on Multipass VMs: Connecting worker nodes to swarm results in rcp error
- Facing error in creating image of my react+vite project . Dockerfile error
- NextJS Docker build fails: fetch failed ECONNREFUSED
- Docker container unable to make HTTPS requests to external API
- Failed to connect to your instance after deploying mern app on aws ec2 instance when i try to access frontend
- Connecting to Postgres running in a Docker container using psql
- Can't connect to local postgresql server from my docker container
Related Questions in ROS
- Python cv2 imwrite() - RGB or BGR
- How do I stream data from TUM RGB-D to ORB-SLAM3 and analyse/record data from that
- px4 Drone does not follow Mavsdk control
- (ros melodic) Lidar odometry is not working well
- cmake and g++ cross compilation looking for library in host sysroot path instead of target sysroot
- How to Reset Quadcopters' Position and Velocity in Gazebo Using Python Script Without Relaunching the Launch File?
- Ros publisher and arduino subscriber
- Transform error while launching multiple turtlebots in ROS NOETIC
- How to convert local radar laser to global position?
- Unable to apply Camera Distortion on Gazebo Harmonic
- Extracting obstacle information from hectorslam map data
- KITTI dataset: ground truth labels (bird's eye view) match after an image generation?
- How to install pyyaml into `/usr/lib/python3/dist-packages`
- ros noetic installation problem on ubuntu
- How do I modify this DC motor encoder code to work with 4 DC motors?
Related Questions in GAZEBO-SIMU
- Unable to apply Camera Distortion on Gazebo Harmonic
- Normalized values from ROS2 incorrect
- How to launch a Gazebo node with a namespace in ROS2?
- Visualize turtlebots in RViz
- Robot not loading on Gazebo
- how convert urdf to sdf with <preserveFixedJoint> tag
- cannot find gazebo_ros package in robostack / how run gazebo with ros2-humble in robostack?
- How can I make my "two legged" modular robot to move in Gazebo (it seems "pinned" by a fixed joint and unmovable)?
- Recommendation for proper way to export URDF from the CAD model
- How to attach land_pad model on top of rover model in PX4-Autopilot Gazebo simulation
- OpenGL Rendering Issues with Ignition Gazebo in Docker on Mac Monterey
- Gazebo world, strange behavior on collision. Robot gets thrown away
- Building PX4 source code along with Gazebo on Ubuntu 18.04 failed
- How can i solve gazebo sdf warning?
- Issue with Texture Display in Cloned Project from GitHub Repository
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can use curl to consume Docker API. Reference's documentation: https://docs.docker.com/engine/api/sdk/examples/#run-a-container
Where v1.41 is the API version of Docker. To check what version you are running just execute
docker versionThis way you have to make these calls from the host executing the Docker process though. If you need to execute remote calls to the host, the only thing you can do is to write a small executable that exposes a web interface that you can use to call internal Docker API (https://docs.rs/docker-api/latest/docker_api/)