Questions tagged [docker-cli]

39 questions
0
votes
2 answers

Unauthorized: authentication required Harbor

I am facing the following issue. I have a harbor private registry and i am trying to login through docker cli. I am able to login successfully with: docker login . When i execute this command the cli is asking me for username and password…
apoellitsi
  • 249
  • 6
  • 21
0
votes
2 answers

Not able to exit from interactive mode of docker start

I started a container using the below command connecting to linux server using putty. docker start -i but I am not able exit from it and get back to command line, without closing the putty.
0
votes
0 answers

How to start the app Docker without opening Docker Desktop on MacOS?

To be able to run docker-compose, I need to have docker desktop running, otherwise I'll get connection refused errors. Is there a way I can start docker WITHOUT starting the desktop app to be able to then run what needs to be run?
Passaro
  • 93
  • 1
  • 8
0
votes
0 answers

docker build - "error during connect: This error may indicate that the docker daemon is not running."

I'm working on Windows 10 with the CLIs Git Bash, WSL2 and PowerShell. So far, I have not figured out how to make the command docker build -t aws/codebuild/standard:3.0 . work. I've already tried several things: In Git Bash: net stop docker Opening…
Andreas L.
  • 3,239
  • 5
  • 26
  • 65
0
votes
1 answer

Docker CLI on Windows: config.json path?

According to https://docs.docker.com/engine/reference/commandline/registry_history/ , some experimental features of the Docker CLI can be enabled by editing the config.json file. But, on Windows, where is the config.json file located?
Starnuto di topo
  • 3,215
  • 5
  • 32
  • 66
0
votes
1 answer

How to bind a host directory to docker container via docker CLI?

I'm trying to bind a host directory to a mssql docker container and have the following [bash] script: #!/bin/sh IMPORTDIR=$(cd $(dirname $0); pwd) DATADIR=${DATADIR:-/tmp/db/} set -xe docker run --detach \ -e "ACCEPT_EULA=Y" -e…
Dark Star1
  • 6,986
  • 16
  • 73
  • 121
0
votes
1 answer

How To Remove Anonymous Image In Docker?

So, I want to create an image for my app using docker build . But I forgot to give it a name and the name became . When I tried to remove this with docker image rm The output is bash: syntax error near unexpected token `newline' How…
BookShell527
  • 176
  • 2
  • 8
-1
votes
1 answer

Accessing docker-cli string array element in Go templates

I created a docker container but cannot seem to parse its properties with docker-cli and its format parameter (which uses Go templates). Any idea greatly appreciated. Start a docker container, e.g. go to…
Marcuse7
  • 57
  • 4
-1
votes
3 answers

How to see docker image layers when image tag is not present

I was trying various options of "docker image history" command to see the image layers used to build the image on my local machine. There is a nginx image on my system which has no tags assigned. So "docker images" command lists the following images…
Gunjan Shah
  • 5,088
  • 16
  • 53
  • 72
1 2
3