I’m trying to remotely run a docker command via SSH using the following command. ssh [email protected] "docker system prune -af" The error I receive is: unknown shorthand flag: ‘X’ in -X. See ‘docker system prune –help’. Note that I use passwordless authentication with SSH. The command above also does not require any user interaction. I ..
I have the following Dockerfile. This is what the “n” package is. FROM ubuntu:18.04 SHELL [“/bin/bash”, “-c”] # Need to install curl, git, build-essential RUN apt-get clean RUN apt-get update RUN apt-get install -y build-essential RUN apt-get install -y curl RUN apt-get install -y git # Per docs, the following allows automated installation of n ..
SUMMARY: When I run the following command… docker-compose up –build –exit-code-from combined –timeout 600; echo $? My init.sh script, which is the entrypoint for my combined container, is run twice instead of once. I expect the init.sh script to be run only once. Why is this happening and how can I make it run only ..
I have two Docker containers: b-db – contains my database b-combined – contains my web application and tests that run once the container is up and running. I’m using a docker-compose.yml file to start both containers. version: ‘3’ services: db: build: context: . dockerfile: ./docker/db/Dockerfile container_name: b-db restart: unless-stopped volumes: – dbdata:/data/db ports: – “27017:27017” ..