docker-container

How to find all image tags of a running Docker container?

孤人 提交于 2020-03-18 04:25:08
问题 I have a bunch of Docker containers running on a server and I used the "latest" tag or no tag at all for all of them. Now I want to freeze the image versions, but I have no idea when I pulled these images, so I can't tell which version "latest" is referring to. docker ps is just showing me that the containers use the "latest" or no tag, like this: # docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 371d6675888b node:latest "npm start" 6 days ago Up 2 hours project_xyz_1

Docker port forwarding not working

蹲街弑〆低调 提交于 2020-02-19 10:02:25
问题 I have setup Docker container for access my machine docker container to another machine in local. Create a container below command: docker run -it -d --name containerName -h www.myhost.net -v /var/www/html -p 7000:8000 --net mynetwork --ip 172.11.0.10 --privileged myimagename bash After Create A Container Details: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 1e1e5e9b74b4 myimgaename "bash" 21 minutes ago Up 6 minutes 0.0.0.0:7000->8000/tcp containername NetWork Details:

Getting unknown error: Chrome failed to start: exited abnormally. (unknown error: DevToolsActivePort file doesn't exist)

懵懂的女人 提交于 2020-02-05 03:22:41
问题 Running TestNG scripts through docker container with standlone-chrome image, at the container level chrome fails to start in Linux machine. capablities also includes : --disable-dev-shm-usage",--no-sandbox,--headless. I tried updating the chrome driver but still didn't worked. org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally. (unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location /opt/google/chrome

Getting unknown error: Chrome failed to start: exited abnormally. (unknown error: DevToolsActivePort file doesn't exist)

☆樱花仙子☆ 提交于 2020-02-05 03:21:13
问题 Running TestNG scripts through docker container with standlone-chrome image, at the container level chrome fails to start in Linux machine. capablities also includes : --disable-dev-shm-usage",--no-sandbox,--headless. I tried updating the chrome driver but still didn't worked. org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally. (unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location /opt/google/chrome

How to copy multiple files into a docker data volume

守給你的承諾、 提交于 2020-01-24 05:09:11
问题 It may sound trivial but I couldn't find a easy way to copy multiple files into the root folder of a docker volume. I am using Ubuntu Xenial 16.04 and Docker 1.12.1 . For example if I have an Ubuntu container with the volume /my_data : docker run --name my_container -v /my_data -d ubuntu:latest In my host machine I have a folder called /tmp/my_data/ with multiple files inside, and I would like to copy all those files into the volume /my_data in my_container . I have tried the following

How to copy a file from host to container using docker-py (docker SDK)

牧云@^-^@ 提交于 2020-01-23 06:42:25
问题 I know, there is possible way how to copy file bidirectionally between host and docker container using docker cp and also it is possible to obtain file from running container using docker-py. But I am not able to figure out how (or if it is even possible) copy file from host to running container using docker-py. Do you guys have any experiences with such kind of problem? Is it possible to do or I have to execute command using python os.system . I would like to avoid this solution. 回答1:

ElasticSearch is up and running in docker but not responding to request

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-16 19:11:53
问题 New to docker and ELK stack. I referred to this doc, for running elastic search in docker. Docker container command says, elastic search is up in 9200 and 9300., CONTAINER ID : ef87e2bccee9 IMAGE: docker.elastic.co/elasticsearch/elasticsearch:6.6.1 CREATED: 18 minutes ago STATUS: Up 18 minutes PORTS: 0.0.0.0:9200->9200/tcp, 0.0.0.0:9300->9300/tcp NAMES: dreamy_roentgen And elastic search logs says C:\Windows\system32>docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker

How to assign more memory to docker container

≯℡__Kan透↙ 提交于 2019-12-27 17:11:29
问题 As the title reads, I'm trying to assign more memory to my container. I'm using an image from docker hub called "aallam/tomcat-mysql" in case that's relevant. When I start it normally without any special flags, there's a memory limit of 2GB (even though I read that memory is unbounded if not set) Here are my docker stats CONTAINER CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS ba57d6c9e9d2 0.22% 145.6 MiB / 1.952 GiB 7.29% 508 B / 508 B 0 B / 6.91 MB 68 I tried setting memory explicitly

Could not able to access the hosted application in Docker container from the parent host

不打扰是莪最后的温柔 提交于 2019-12-25 01:30:02
问题 I have created a Docker container with a tomcat server. I have started the tomcat server and i can see the logs that tomcat server started successfully. I used the following command to run the container docker run -p 8092:8092 -dti cs2 /bin/bash Once the tomcat server started, i tried to access the site from the parent host of the docker container. I tried accessing the site using the following url's //192.168.99.100:8092/ //192.168.99.100:8092/cs/wbs I am not able to hit any above url's. I

Does user space program(runc) regulate the size of physical address space of a docker container process?

时光毁灭记忆、已成空白 提交于 2019-12-24 20:15:18
问题 Below is the CloudFormation template to configure ECS task containers on AWS EC2 instance(Linux): TodobackendTaskDefinition: Type: "AWS::ECS::TaskDefinition" Properties: ContainerDefinitions: - Name: todobackend Image: someacct/todobackend Memory: 450 MountPoints: - ContainerPath: /var/www/todobackend SourceVolume: webroot - Name: nginx Image: someacct/todobackend-nginx Memory: 300 PortMappings: - ContainerPort: "8000" HostPort: "8000" MountPoints: - ContainerPath: /var/www/todobackend