# CrashLoopBackOff for whatever Alpine Image used in deployment

**URL:** <https://discuss.kubernetes.io/t/crashloopbackoff-for-whatever-alpine-image-used-in-deployment/27322>\
**Category:** General Discussions\
**Tags:** deployment\
**Created:** [March 4, 2024, 6:36pm UTC](https://discuss.kubernetes.io/t/crashloopbackoff-for-whatever-alpine-image-used-in-deployment/27322 "2024-03-04T18:36:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eliassal](https://avatars.discourse-cdn.com/v4/letter/e/43a26b/32.png) [@eliassal](https://discuss.kubernetes.io/u/eliassal)\
**Post date:** [March 4, 2024, 6:36pm UTC](https://discuss.kubernetes.io/t/crashloopbackoff-for-whatever-alpine-image-used-in-deployment/27322/1 "2024-03-04T18:36:42Z")

</div>

Asking for help? Comment out what you need so we can get more information to help you!

### Cluster information:

Kubernetes version:  
Client Version: v1.25.0  
Kustomize Version: v4.5.7  
Server Version: v1.26.4  
Installation method: Bare-and-metal on a VM  
Host OS: Ubuntu 22

Hi, I am trying a simple deployment with an alpine image (built by myself as well as using vandot/alpine-bash). Deployment gets created then I have 0/1 ready and see CrashLoopBackOff in the pod details. In spite of the fact that when I use docker run for both images everything works fine and I am able to access the bash in the container.

You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.

Here is the the deployment yaml

```auto
apiVersion: apps/v1
kind: Deployment
metadata:
 name: openjdk8alpine-with-bash
 namespace: debugservices
spec:
  replicas: 1
  selector:
    matchLabels:
      app: openjdk8alpine-with-bash
  template:
    metadata:
      labels:
        app: openjdk8alpine-with-bash
    spec:
      containers:
      - image: eliassal/openjdk:8-jdk-alpine-with-bash
        name: alpine-with-bash

```

or

`image: vandot/alpine-bash`

Here is the dockerfile that I used to build the alpine image with bash

```auto
FROM openjdk:8-jdk-alpine
MAINTAINER baeldung.com
RUN apk update && apk add bash
CMD /bin/bash

```
