Dropping priviliges inside of the container

One of my images requires mounting of devices. Thus, it needs cap_sys_admin when starting. However, I’d like to drop this capability once it is no longer needed. Is there some way of dropping the capability at a later stage?

Docker Exec -it bash Terminal Output Improperly Formatted [duplicate]

This question already has an answer here: Missing Carriage Return in Docker for Mac Containers 3 answers

How do I use Liblas in python in docker without error?

I am trying to use liblas to manipulate some lidar data in python in docker, but I keep getting an error. The code I am trying to run is copy-pasted from the liblas python tutorial, and should simply create a las-file and write a point to it: from liblas import file from liblas import header […]

Restoring a local pg_dumpall in a docker container

I have scoured the web, and cant find a solution that fits my needs. I have been following this tutorial loosely with Flask instead of Django. I’ve got the docker-compose build command working without error, and then the docker-compose up command working as well. With the latter I get name_of_container_data_1 exited with code 0 and […]

docker-machine command fails on openstack

i want to use docker-machine command in the openstack environement, the docker-machine –version give me docker-machine version 0.10.0, build 76ed2a6 , so i run this command : docker-machine –debug create -d openstack –openstack-ssh-user ubuntu –openstack-auth-url http://controller:35357/v3 –openstack-image-name ubuntu –openstack-flavor-name m1.small –openstack-domain-name default –openstack-floatingip-pool public –openstack-net-name provider master1 it give me this errors : Error creating […]

AWS ECS windows containers network mode issue

Pushed a windows docker image to ECR. Created Task Definition , created Task and service. Is there anything specific have to do for network mode? The aws documentation says there is no need to set any network mode but if I don’t create any network mode there is no port mapping and the site does […]

Docker containers failing to start on boot: resolv.conf missing

I am running Docker 17.06 on Ubuntu zesty and I need to use NetworkManager to handle DNS resolving (Wireless and VPNs). On boot, containers fail to start: Failed to start container eab82f4cea110009c18c2e4733644b4fe2bcf05d4821ca5e293328b7468e5229: open /etc/resolv.conf: no such file or directory Not sure whether it is the link or the actual file which is missing at that […]

MySQL docker container crashes

I’m a newbie with Docker and I’m working on a Symfony2 software development project that uses docker with MySQL, nginx and the web app containers in it. I’m constantly being disconnected from MySQL with the following error message : DriverException in AbstractMySQLDriver.php line 115: An exception occured in driver: SQLSTATE[HY000] [2003] Can’t connect to MySQL […]

Symfony app/console command is not running with cronjob inside Docker container

I have created a Docker image and container for my synfony2 application and I have some jobs which I am trying running using CRON. When I am trying run PHP app/console Command manually it’s working. But When CRONJob can’t able to run PHP app/console. All other CRON jobs are working except Symfony app/console commands. I […]

Babelrc file in Docker builds

I’m running into the errors: ERROR in ../~/babel-polyfill/lib/index.js Couldn’t find preset “es2015-loose” relative to directory “/app” amongst a few other preset not found errors upon building a ReactJS project. It runs on webpackdevserver in dev. COPY in Docker doesn’t copy over dot files by default. Should I be copying .babelrc over to avoid this breaking? […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.