alpine linux — autossh (missing)

I need to be able to :

RUN apk add --no-cache autossh

  • Debian Packagemanager won't install vagrant.deb package on alpine-linux, while building docker image
  • Dockerfile compile in local machine but fails in docker hub for automated build
  • Installing ssh-keyscan on Alpine linux?
  • Install cron tasks in a docker run command
  • How to install a minimal cuda driver file into Alpine linux
  • SonarQube in Docker failes to resolve local host
  • 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
    

  • AWS Elastic Beanstalk Docker deployment failed
  • How to mount the root directory of docker container as a NFS mount point
  • How to get from Android Emulator to Docker Machine's container?
  • How can I add the used base (FROM) image to a docker image
  • Building a docker play application with gradle
  • Should an application stack consist of a single or multiple swarm clusters?
  • 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 pkgs.alpinelinux.org. 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 "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /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.