Perhaps a newbie question, but how do i add some dependencies or command to a container after has been bringed up with compose.
i have a container which automatically pulls the image from the web, but after it is started i would like to install a dependencie with “apt-get install”. If i don’t specify this somewhere those depencies are gone when i bring the container down/up.
containername: container_name: name image: dockerhub/imagename restart: always network_mode: host volumes:
Can i use the command switch for this? or does this an overwrite of the docker deployment itself? or does this add the command after the container is deployed?