I building docker project using below instructions and output:
- build command seem to be succeed
@j:~$ docker build \
-t maplibre-native-image \
--build-arg USER_UID=$(id -u) \
--build-arg USER_GID=$(id -g) \
-f docker/Dockerfile \
docker
[+] Building 2.7s (13/13) FINISHED docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2.69kB 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:24.04 2.5s
=> [auth] library/ubuntu:pull token for registry-1.docker.io 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [1/7] FROM docker.io/library/ubuntu:24.04@sha256:561618e2c15bf2397621dd04f96926663a3b5616c189cf7e38db7e82f5c538ea 0.0s
=> => resolve docker.io/library/ubuntu:24.04@sha256:561618e2c15bf2397621dd04f96926663a3b5616c189cf7e38db7e82f5c538ea 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 32B 0.0s
=> CACHED [2/7] RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y apt- curl gnupg sudo `# allows dev to install more packages w 0.0s
=> CACHED [3/7] RUN echo "Download and install Bazel" && if [ "$(uname -m)" = "aarch64" ]; then curl -fsSL s
=> CACHED [4/7] RUN groupmod --gid 1000 ubuntu && usermod --uid 1000 --gid 1000 ubuntu && chown -R 1000:1000 /home/ubuntu && echo ubuntu ALL=(root) NOPASSWD:ALL > /etc/sudoers.d/ubuntu && 0.0s
=> CACHED [5/7] COPY startup.sh /usr/local/bin/startup.sh 0.0s
=> CACHED [6/7] RUN chmod +x /usr/local/bin/startup.sh 0.0s
=> CACHED [7/7] WORKDIR /app 0.0s
=> exporting to image 0.1s
=> => exporting layers 0.0s
=> => exporting manifest sha256:cd7ebb92c421fd9be773f756c5942f22c9be913a51c64fd8c6f21f44177b3a39 0.0s
=> => exporting config sha256:562c6369cff84db1db0e30a6c4d39a8a7731c2ce09c732c3466a5f8ba0e886b9 0.0s
=> => exporting attestation manifest sha256:c18b4667b5920931e0e3e3b65ff4926bffd83da9225d24b698837414c3578b51 0.0s
=> => exporting manifest list sha256:9d435e8d5cbb6c19e1bcdd81fe058a5ffde64014fe4f81cc2f4cc7dfe1ecf24f 0.0s
=> => naming to docker.io/library/maplibre-native-image:latest 0.0s
=> => unpacking to docker.io/library/maplibre-native-image:latest 0.0s
j@j:~$
- I see images, but could not run in all possible ways I found
2.1)
j@j:~/docker$ docker images
i Info → U In Use
IMAGE ID DISK USAGE CONTENT SIZE EXTRA
maplibre-native-image:latest c1d651f42a34 2.63GB 621MB U
j@j:~/docker$ docker run c1d651f42a34
ERROR: Docker container was not started properly.
From the root of this repo, run the following command.
You may add any command to perform in the container at the end of this command.
j@j:~/docker$ docker run maplibre-native-image:latest
ERROR: Docker container was not started properly.
From the root of this repo, run the following command.
You may add any command to perform in the container at the end of this command.
2.2)
docker run --rm -it -v "$PWD:/app/" -v "$PWD/docker/.cache:/home/ubuntu/.cache" maplibre-native-image
ERROR: Docker container was not started properly.
From the root of this repo, run the following command.
You may add any command to perform in the container at the end of this command.
Could you please share some pointers how to fix above?
Do I miss some files or path is wrong?
Probably I should change the command syntax?
Any help much appreciated!
P.S I could not post the text due to some forum issue, please help me to edit the post or share instruction how to do the same
[mod update: replaced the link to your post pastbin post with the content]