Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
theJaxon committed Sep 21, 2022
1 parent 57f5ca3 commit 19b348e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,16 @@ vagrant ssh < master | worker >

- Start by installing podman
```bash
export image_name=jenkins-local

# Assuming there's a Dockerfile in the current working directory
podman build --tag jenkins-local .
podman build --tag $image_name .

# Save the image into tar file
podman save jenkins-local -o jenkins-local.tar
podman save $image_name -o $image_name.tar

# Use ctr to import the image
sudo ctr -n=k8s.io images import jenkins-local.tar
sudo ctr -n=k8s.io images import $image_name.tar

# Verify that the image is now available for k8s to use
sudo crictl image ls
Expand Down

0 comments on commit 19b348e

Please sign in to comment.