Vincent Faliès - Artisan Codeur

Restart service in docker-compose

system linux docker container root docker-compose
Reading time: 1 minute, 0 seconds

When you use a docker-compose,you can want restart a service without restart all services.

Type the following command :

docker-compose up --no-deps containername

Continue reading...

Root inside a docker container

system linux docker container root
Reading time: 1 minute, 0 seconds

When you use a docker container, it could be interresting to be with root user.

It can be necessary to install some temporary tools for instance.

To simply you connect to the container with root user (id = 0), type the following command :

docker exec -u 0 -it mycontainer /bin/sh

Continue reading...