/bin/sh: 1: apk: not found while creating docker image

后端 未结 1 714
野的像风
野的像风 2020-12-29 03:12

I have the below Dockerfile for zookeeper and I am trying to create an image for it, but it is giving me an error. I have recently started working with Docker, and started p

相关标签:
1条回答
  • 2020-12-29 03:35

    As larsks mentions, apk is for Alpine distributions and you selected FROM ubuntu:trusty which is Debian based with the apt-get command. Change your FROM line to FROM alpine:3.4 to switch to the Alpine based image with apk support.

    0 讨论(0)
提交回复
热议问题