Hi,
I’m trying to build a simple image with no new additions, on top of ubuntu:jammy. If I run docker run -it ubuntu:jammy I get the bash prompt. However, if I run my image build on top of it without adding anything to the image, then when docker run -it <myimageid> I get the following error:
docker run -it 09db9daa8aa9
/bin/bash: 3: Syntax error: Unterminated quoted string
Based on the additional info below, does anyone have any ideas why this is failing? It seems trivial to me ![]()
Below is my packer file and and other system specs. Note that I also downloaded and ran Google’s container-diff tool and it reports the following:
$ container-diff diff daemon://ubuntu:jammy daemon://mw-ansible-controller
-----Size-----
Image size difference between ubuntu:jammy and mw-ansible-controller: None
$ container-diff diff daemon://ubuntu:jammy daemon://mw-ansible-controller --type=file
-----File-----
These entries have been added to ubuntu:jammy:
FILE SIZE
/packer-files 0
These entries have been deleted from ubuntu:jammy: None
These entries have been changed between ubuntu:jammy and mw-ansible-controller: None
Host OS: - Ubuntu 23.10 (mantic)
Packer Version: v1.10.2
Here is my packer file:
packer {
required_plugins {
docker = {
version = ">= 1.0.8"
source = "github.com/hashicorp/docker"
}
}
}
source "docker" "ubuntu2204" {
image = "ubuntu:jammy"
commit = true
}
build {
name = "ansible-controller"
sources = [
"source.docker.ubuntu2204"
]
}
Any ideas would be greatly appreciated!
Regards