Docker

Docker - ELK - vm.max_map_count

≯℡__Kan透↙ 提交于 2021-02-17 15:19:33
问题 I'm trying to use the docker's image elk-docker (https://elk-docker.readthedocs.io/) , using Docker Compose. The .yml file, is like this: elk: image: sebp/elk ports: - "5601:5601" - "9200:9200" - "5044:5044" When I run the command: sudo docker-compose up, the console shows: * Starting Elasticsearch Server sysctl: setting key "vm.max_map_count": Read-only file system ...fail! waiting for Elasticsearch to be up (1/30) waiting for Elasticsearch to be up (2/30) waiting for Elasticsearch to be up

Running as a host user within a Docker container

有些话、适合烂在心里 提交于 2021-02-17 15:13:32
问题 In my team we use Docker containers to locally run our website applications while we do development on them. Assuming I'm working on a Flask app at app.py with dependencies in requirements.txt , a working flow would look roughly like this: # I am "robin" and I am in the docker group $ whoami robin $ groups robin docker # Install dependencies into a docker volume $ docker run -ti -v `pwd`:`pwd` -w `pwd` -v pydeps:/usr/local python:3-slim pip install -r requirements.txt Collecting Flask==0.12.2

Running as a host user within a Docker container

只谈情不闲聊 提交于 2021-02-17 15:12:58
问题 In my team we use Docker containers to locally run our website applications while we do development on them. Assuming I'm working on a Flask app at app.py with dependencies in requirements.txt , a working flow would look roughly like this: # I am "robin" and I am in the docker group $ whoami robin $ groups robin docker # Install dependencies into a docker volume $ docker run -ti -v `pwd`:`pwd` -w `pwd` -v pydeps:/usr/local python:3-slim pip install -r requirements.txt Collecting Flask==0.12.2

Find out which network interface belongs to docker container

守給你的承諾、 提交于 2021-02-17 14:45:55
问题 Docker creates these virtual ethernet interfaces veth[UNIQUE ID] listed in ifconfig . How can I find out which interface belongs to a specific docker container? I want to listen to the tcp traffic. 回答1: To locate interface In my case getting value from container was like (check eth0 to): $ docker exec -it my-container cat /sys/class/net/eth1/iflink 123 And then: $ ip ad | grep 123 123: vethd3234u4@if122: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master docker_gwbridge state UP

Find out which network interface belongs to docker container

a 夏天 提交于 2021-02-17 14:44:30
问题 Docker creates these virtual ethernet interfaces veth[UNIQUE ID] listed in ifconfig . How can I find out which interface belongs to a specific docker container? I want to listen to the tcp traffic. 回答1: To locate interface In my case getting value from container was like (check eth0 to): $ docker exec -it my-container cat /sys/class/net/eth1/iflink 123 And then: $ ip ad | grep 123 123: vethd3234u4@if122: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master docker_gwbridge state UP

Docker temporary files strategy

ぃ、小莉子 提交于 2021-02-17 12:45:38
问题 My docker produces some temporary files. Is there an encouraged strategy regarding those? If I put those to /tmp , I'm not sure they'll get cleared. Or should I expose the volume /tmp from the host machine? Thanks 回答1: I am not aware of any encouraged way to manage temporary files with Docker as it will mostly depend on how you need to handle these temporary files with your application (should they be deleted on restart? Periodically?...) You have several possibilities depending on your needs

Understanding docker -v command

爱⌒轻易说出口 提交于 2021-02-17 12:41:06
问题 I was just going through this tutorial on Youtube, trying to understand the use of the -v command. Why is the author using the -v command? He uses the command, like so: docker run -v /var/lib/mysql --name=my_datastore -d busybox echo "my datastore" Now I understand the above command to an extent: --name=my_datastore gives the container a specific name. -d busybox starts a container in detached mode, based on the busybox image. After the command is executed the below line is echoed to the

kdevtmpfsi - how to find and delete that miner [closed]

自古美人都是妖i 提交于 2021-02-17 12:40:17
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 1 year ago . Improve this question I saw in my Linux (Ubuntu) server processes, called: kdevtmpfsi . It utilized 100% of all CPUs and RAM... 1) Tried to find a word in linux files: find / -type f -exec grep -l "kdevtmpfsi" {} + 2) And found a file in the docker _data folder: /var/lib/docker/volumes

kdevtmpfsi - how to find and delete that miner [closed]

六月ゝ 毕业季﹏ 提交于 2021-02-17 12:39:35
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 1 year ago . Improve this question I saw in my Linux (Ubuntu) server processes, called: kdevtmpfsi . It utilized 100% of all CPUs and RAM... 1) Tried to find a word in linux files: find / -type f -exec grep -l "kdevtmpfsi" {} + 2) And found a file in the docker _data folder: /var/lib/docker/volumes

kdevtmpfsi - how to find and delete that miner [closed]

我的梦境 提交于 2021-02-17 12:37:38
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 1 year ago . Improve this question I saw in my Linux (Ubuntu) server processes, called: kdevtmpfsi . It utilized 100% of all CPUs and RAM... 1) Tried to find a word in linux files: find / -type f -exec grep -l "kdevtmpfsi" {} + 2) And found a file in the docker _data folder: /var/lib/docker/volumes