alpine linux — autossh (missing)

I need to be able to :

RUN apk add --no-cache autossh

  • Running OpenSSH in an Alpine Docker Container
  • How to make Flask serve the right content types for static files on Alpine?
  • Is there a best practice on setting up glibc on docker alpine linux base image?
  • How to get 'man' working in an Alpine Linux Docker container?
  • Install pylint in Alpine Linux based Docker Image
  • How to add Alpine Linux repositories when their domain is expired?
  • for migrating my project into alpine linux from ubuntu

    I’m getting an error while building the Dockerfile.. any workarounds?
    I cannot get rid of the autossh requirement as I need this to connect to me compose db.

    ERROR: unsatisfiable constraints:
      autossh (missing):
        required by: world[autossh]
    The command '/bin/sh -c apk add --no-cache autossh' returned a non-zero code: 1

  • Docker-Compose Persistent Data Trouble
  • Improving performance of inserting into Mongo from ActiveMQ
  • Starting mongo through docker on a Synology NAS
  • /bin/sh: 1: composer: not found
  • Docker private registry | TLS certificate issue
  • How to run Docker container from Java project?
  • 2 Solutions collect form web for “alpine linux — autossh (missing)”

    Package autossh is in the community repository and only edge branch, as you can check on Alpine has only main from a stable branch in /etc/apk/repositories by default, so to install package from another repository and branch, you have to add it here, e.g.:

    echo "" >> /etc/apk/repositories
    apk update

    Please try running apk update before that in docker file. Hope it works

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