如何在Docker工具箱中使用降级的Docker?

时间:2019-01-11 07:46:16

标签: bash docker docker-toolbox

我需要在docker工具箱中运行降级的docker版本。

我已按照this指南安装了必需的docker-machine版本(删除了先前的默认设置并安装了新的默认版本),并借助package com.MyApps.screen; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import com.Sinergi.VenusERP10_Client.R; import java.util.ArrayList; import com.squareup.picasso.Picasso; public class ProductAdapter extends RecyclerView.Adapter<ProductAdapter.ProductViewHolder> { private Context mContext; private ArrayList<ProductItem> arProductList; private OnItemClickListener mListener; public interface OnItemClickListener{ void onItemClick(int position); } public void setOnItemClickListener(OnItemClickListener listener) { mListener = listener; } public ProductAdapter(Context context, ArrayList<ProductItem> productList) { mContext = context; arProductList = productList; } @Override public ProductViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { View v = LayoutInflater.from(mContext).inflate(R.layout.product_item, parent, false); return new ProductViewHolder(v); } @Override public void onBindViewHolder(ProductViewHolder holder, int position) { String imageUrl = arProductList.get(position).getsImageURL(); holder.tvCode.setText(arProductList.get(position).getsCode()); holder.tvName.setText(arProductList.get(position).getsName()); holder.tvPrice.setText(arProductList.get(position).getsPrice()); holder.tvDesc.setText(arProductList.get(position).getsDescription()); Picasso.with(mContext).load(imageUrl).fit().centerInside().into(holder.ivImage); } @Override public int getItemCount() { return arProductList.size(); } public class ProductViewHolder extends RecyclerView.ViewHolder { ImageView ivImage; TextView tvCode; TextView tvName; TextView tvPrice; TextView tvDesc; public ProductViewHolder(View itemView) { super(itemView); ivImage = itemView.findViewById(R.id.ivImage); tvCode = itemView.findViewById(R.id.tvCode); tvName = itemView.findViewById(R.id.tvName); tvPrice = itemView.findViewById(R.id.tvPrice); tvDesc = itemView.findViewById(R.id.tvDesc); itemView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (mListener != null) { int position = getAdapterPosition(); if (position != RecyclerView.NO_POSITION) { mListener.onItemClick(position); } } } }); } } } 命令设置了环境。

当我键入docker-machine env default时,我期望看到已安装的Docker版本(1.13.1),但仍为18.03 ...,即使在重新启动docker toolbox应用程序之后。该如何解决?

0 个答案:

没有答案