docker-container

How to execute command from one docker container to another

旧时模样 提交于 2020-11-24 19:01:25
问题 I'm creating an application that will allow users to upload video files that will then be put through some processing. I have two containers. Nginx container that serves the website where users can upload their video files. Video processing container that has FFmpeg and some other processing stuff installed. What I want to achieve. I need container 1 to be able to run a bash script on container 2. One possibility as far as I can see is to make them communicate over HTTP via an API. But then I

image is being used by stopped container

旧巷老猫 提交于 2020-07-31 06:21:45
问题 I am trying to delete a docker container by this command: docker rmi <Image-Id> Obviously, I have replaced the Image-Id by the Id I get using: docker images But I see the error below: Error response from daemon: conflict: unable to delete <Image-ID> (must be forced) - image is being used by stopped container xxxxxxxxxxx 回答1: You can also use --force , -f Force removal of the image If you use the -f flag and specify the image’s short or long ID, then this command untags and removes all images

Are the container in a kubernetes pod part of same cgroup?

a 夏天 提交于 2020-07-18 11:50:09
问题 In a multi-container Kubernetes pod, are the containers part of the same cgroup (along with pod) or a separate cgroup is created for each container. 回答1: Cgroups Container in a pod share part of cgroup hierarchy but each container get's it's own cgroup. We can try this out and verify ourself. Start a multi container pod. # cat mc2.yaml apiVersion: v1 kind: Pod metadata: name: two-containers spec: restartPolicy: Never containers: - name: container1 image: ubuntu command: [ "/bin/bash", "-c", "