I tried both ways, with and without the ./. Neither worked.
As demonstrated below it works without the “./”:
$ docker build -t dockerfilecan .
Sending build context to Docker daemon 7.68kB
Step 1/4 : ARG IMAGE_ARCH=arm64v8
Step 2/4 : FROM torizon/$IMAGE_ARCH-debian-shell:2
---> f9788bd0f3a1
Step 3/4 : WORKDIR /home/torizon
---> Using cache
---> c2d854c1410a
Step 4/4 : RUN apt-get -y update && apt-get install -y nano python3 python3-pip python3-setuptools git iproute2 can-utils python3-can && apt-get clean && apt-get autoremove && rm -rf /var/lib/apt/lists/*
---> Using cache
---> 526309641c0a
Successfully built 526309641c0a
Successfully tagged dockerfilecan:latest
If I have the “./” then I get the same error you got previously:
$ docker build -t ./dockerfilecan .
invalid argument "./dockerfilecan" for "-t, --tag" flag: invalid reference format
See 'docker build --help'.
but you have to be in the directory where the dockerfile is. You can’t attach a path to it.
If you’re running the docker build
command from a different directory then where the Dockerfile actually is you can specify a path with the --file
flag as documented here: docker build | Docker Docs
It could be I executed it using the terminal connection instead of a direct ssh connection.
Everything I demonstrated above works with both a serial connection and over SSH, this shouldn’t matter.
And the 6.1 will no longer allow the tunnel connection
What do you mean by this? I’m able to access my board via SSH with no issues and I’m running 6.1.
5.7 version doesn’t boot all the way.
There is a known issue where the graphical containers are not working properly for 5.7.2, but this only results in no graphical output. If you connect via serial or SSH then you can see the system boots and you can login. Is this the issue you are referring to or something else?
What is the best way to tell the torizon version once it is installed?
There are multiple ways you can look at the contents of /etc/issue
:
$ cat /etc/issue
TorizonCore 6.1.0+build.1 \n \l
Or the contents of /etc/os-release
:
$ cat /etc/os-release
ID=torizon
NAME="TorizonCore"
VERSION="6.1.0+build.1 (kirkstone)"
VERSION_ID=6.1.0-build.1
PRETTY_NAME="TorizonCore 6.1.0+build.1 (kirkstone)"
DISTRO_CODENAME="kirkstone"
BUILD_ID="1"
ANSI_COLOR="1;34"
VARIANT="Docker"
Or via uname -a
as you did in your original message in this thread:
$ uname -a
Linux verdin-imx8mp-06849059 5.15.77-6.1.0+git.349786b46e61 #1-TorizonCore SMP PREEMPT Wed Dec 28 09:58:45 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
Best Regards,
Jeremias